Skip to content

develop <-- Feature/dashboard & ๐Ÿ›fix: useCardMutation์— InfiniteDataํƒ€์ž… ๋ฐ˜์˜#106

Merged
dkslel1225 merged 22 commits intodevelopfrom
feature/dashboard_id
Jun 22, 2025
Merged

develop <-- Feature/dashboard & ๐Ÿ›fix: useCardMutation์— InfiniteDataํƒ€์ž… ๋ฐ˜์˜#106
dkslel1225 merged 22 commits intodevelopfrom
feature/dashboard_id

Conversation

@dkslel1225
Copy link
Copy Markdown
Contributor

@dkslel1225 dkslel1225 commented Jun 22, 2025

๐Ÿ“Œ ๋‚จ์€ ์ž‘์—…

๐Ÿ›fix: useInfiniteQuery์ ์šฉ ํ›„ ์บ์‹œ ๊ตฌ์กฐ ๋ณ€๊ฒฝ(InfiniteData) ๋ฐ˜์˜ํ•˜์—ฌ ๋‚™๊ด€์  ์—…๋ฐ์ดํŠธ ํ•จ์ˆ˜ ์ˆ˜์ •

โœจ ์š”์•ฝ

๐Ÿ“ ์ƒ์„ธ ๋‚ด์šฉ

๐Ÿ”— ๊ด€๋ จ ์ด์Šˆ

๐Ÿ–ผ๏ธ ์Šคํฌ๋ฆฐ์ƒท

โœ… ์ฒดํฌ๋ฆฌ์ŠคํŠธ

  • ๋ธŒ๋žœ์น˜ ๋„ค์ด๋ฐ ์ปจ๋ฒค์…˜์„ ์ค€์ˆ˜ํ–ˆ์Šต๋‹ˆ๋‹ค
  • ์ปค๋ฐ‹ ์ปจ๋ฒค์…˜์„ ์ค€์ˆ˜ํ–ˆ์Šต๋‹ˆ๋‹ค
  • ์ฝ”๋“œ๊ฐ€ ํ”„๋กœ์ ํŠธ์˜ ์Šคํƒ€์ผ ๊ฐ€์ด๋“œ๋ผ์ธ์„ ์ค€์ˆ˜ํ•ฉ๋‹ˆ๋‹ค

๐Ÿ’ก ์ฐธ๊ณ  ์‚ฌํ•ญ

Summary by CodeRabbit

  • ์‹ ๊ทœ ๊ธฐ๋Šฅ
    • ์นด๋“œ์— ๋Œ“๊ธ€ ๊ธฐ๋Šฅ์ด ์ถ”๊ฐ€๋˜์–ด, ์นด๋“œ ์ƒ์„ธ์—์„œ ๋Œ“๊ธ€ ์ž‘์„ฑ, ์ˆ˜์ •, ์‚ญ์ œ ๋ฐ ๋ฌดํ•œ ์Šคํฌ๋กค ์กฐํšŒ๊ฐ€ ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค.
    • ์นด๋“œ ์ˆ˜์ • ๋ชจ๋‹ฌ์ด ๋„์ž…๋˜์–ด, ์นด๋“œ ์ •๋ณด๋ฅผ ์†์‰ฝ๊ฒŒ ์ˆ˜์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
    • ์นผ๋Ÿผ ๋ฐ ์นด๋“œ ๋ชฉ๋ก์— ๋ฌดํ•œ ์Šคํฌ๋กค์ด ์ ์šฉ๋˜์–ด ๋งŽ์€ ๋ฐ์ดํ„ฐ๋„ ์›ํ™œํžˆ ํƒ์ƒ‰ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
  • UI/์Šคํƒ€์ผ ๊ฐœ์„ 
    • ์นด๋“œ, ์นผ๋Ÿผ, ๋ฒ„ํŠผ, ์ž…๋ ฅ์ฐฝ ๋“ฑ ๋‹ค์–‘ํ•œ ์ปดํฌ๋„ŒํŠธ์˜ ๋ฐ˜์‘ํ˜• ๋ ˆ์ด์•„์›ƒ๊ณผ ์Šคํƒ€์ผ์ด ๊ฐœ์„ ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.
    • ๋‹คํฌ ๋ชจ๋“œ์—์„œ์˜ ํ…Œ๋‘๋ฆฌ ์ƒ‰์ƒ ๋“ฑ ์„ธ๋ถ€ ์Šคํƒ€์ผ์ด ์กฐ์ •๋˜์—ˆ์Šต๋‹ˆ๋‹ค.
    • ์•„๋ฐ”ํƒ€, ํ…Œ๋งˆ ํ† ๊ธ€ ๋“ฑ flexbox ํ™˜๊ฒฝ์—์„œ ํฌ๊ธฐ ์œ ์ง€๊ฐ€ ๋ณด์žฅ๋ฉ๋‹ˆ๋‹ค.
  • ๋ฒ„๊ทธ ์ˆ˜์ •
    • ์ž…๋ ฅ์ฐฝ, ๋ฒ„ํŠผ ๋“ฑ์—์„œ ๋ชจ๋ฐ”์ผ ํ™˜๊ฒฝ ๋Œ€์‘ ๋ฐ ์ ‘๊ทผ์„ฑ์ด ๊ฐœ์„ ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.
  • ์•Œ๋ฆผ/ํ”ผ๋“œ๋ฐฑ
    • ์นด๋“œ ๋ฐ ๋Œ“๊ธ€ ์ƒ์„ฑ, ์ˆ˜์ •, ์‚ญ์ œ ์‹œ ์•Œ๋ฆผ(ํ† ์ŠคํŠธ) ๋ฉ”์‹œ์ง€๊ฐ€ ์ œ๊ณต๋ฉ๋‹ˆ๋‹ค.
  • ๊ธฐํƒ€
    • ๋‚ด๋ถ€์ ์œผ๋กœ ์ฝ”๋“œ ๊ตฌ์กฐ๊ฐ€ ๊ฐœ์„ ๋˜๊ณ , ํƒ€์ž… ์ •์˜๊ฐ€ ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

jyn and others added 19 commits June 21, 2025 04:47
๐Ÿ“ TODO:
- ๋‹ด๋‹น์ž ์˜† ์•„๋ฐ”ํƒ€์— ๋ฐ˜์‘ํ˜• ์‚ฌ์ด์ฆˆ ์ ์šฉ ํ•„์š”
- ์นด๋“œ ์ˆ˜์ • ๋ชจ๋‹ฌ์˜ ์ปฌ๋Ÿผ ์„ ํƒ ๊ฐ’์„ form ๋ฐ์ดํ„ฐ์™€ ์—ฐ๊ฒฐ ํ•„์š”
โœจ Feat: ์นด๋“œ ์ƒ์„ธ ๋ชจ๋‹ฌ ๊ตฌํ˜„
โœจ Feat: ์นด๋“œ ๋ชฉ๋ก, ๋ชจ๋‹ฌ ๋‚ด ๋Œ“๊ธ€ ๋ชฉ๋ก์— ๋ฌดํ•œ ์Šคํฌ๋กค ๊ตฌํ˜„
๐ŸŽจ style: ๋ฐ˜์‘ํ˜• ๋ฐ ์Šคํƒ€์ผ ์ ๊ฒ€
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Jun 22, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

์ด ๋ณ€๊ฒฝ ์‚ฌํ•ญ์€ ๋Œ€์‹œ๋ณด๋“œ ์นด๋“œ์™€ ์ฝ”๋ฉ˜ํŠธ ๊ธฐ๋Šฅ์— ๋ฌดํ•œ ์Šคํฌ๋กค, ์นด๋“œ/์ฝ”๋ฉ˜ํŠธ ์ƒ์„ฑยท์ˆ˜์ •ยท์‚ญ์ œ, ๋ฐ˜์‘ํ˜• UI ๊ฐœ์„ , ๋‹คํฌ๋ชจ๋“œ ์ง€์›, ๋ฐ”๋”” ์Šคํฌ๋กค ๋ฝ ๋“ฑ ๋‹ค์–‘ํ•œ ๊ธฐ๋Šฅ์„ ์ถ”๊ฐ€ ๋ฐ ๊ฐœ์„ ํ•ฉ๋‹ˆ๋‹ค. ๋˜ํ•œ, ๊ด€๋ จ API ํ•จ์ˆ˜, ์ปค์Šคํ…€ ํ›…, ํƒ€์ž… ์ •์˜๊ฐ€ ๋Œ€ํญ ํ™•์žฅ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

Changes

ํŒŒ์ผ/๊ฒฝ๋กœ ๊ทธ๋ฃน ๋ณ€๊ฒฝ ์š”์•ฝ
src/app/dashboard/[id]/page.tsx ๋Œ€์‹œ๋ณด๋“œ ์ปฌ๋Ÿผ ๋ฐ "์ƒˆ ์ปฌ๋Ÿผ ์ถ”๊ฐ€" ๋ฒ„ํŠผ์˜ flex ๋ฐฉํ–ฅ, ๋ฐ˜์‘ํ˜• ์Šคํƒ€์ผ ์ˆ˜์ •
src/app/features/dashboard_Id/Card/Card.tsx, .../Card/ColumnTitle.tsx ์นด๋“œ ์ปดํฌ๋„ŒํŠธ์— ์นด๋“œ ์ˆ˜์ • ๋ชจ๋‹ฌ ํ”Œ๋กœ์šฐ ๋ฐ ๋ฐ˜์‘ํ˜• ๋ ˆ์ด์•„์›ƒ/์Šคํƒ€์ผ ๊ฐœ์„ , ์ปฌ๋Ÿผ ํƒ€์ดํ‹€ ์ค„๋ฐ”๊ฟˆ ๋ฐฉ์ง€ ํด๋ž˜์Šค ์ถ”๊ฐ€
.../Card/cardFormModals/AssigneeList.tsx, .../Card/cardFormModals/ColumnList.tsx, .../Card/cardFormModals/CreateCardForm.tsx, .../Card/cardFormModals/CreateCardModal.tsx, .../Card/cardFormModals/ModifyCardForm.tsx ์นด๋“œ ํผ ๋ฐ ๋ชจ๋‹ฌ UI/์Šคํƒ€์ผ ๊ฐœ์„ , ์ด๋ฏธ์ง€ ์—…๋กœ๋“œยท์‚ญ์ œ UX ๊ฐœ์„ , ๋‹คํฌ๋ชจ๋“œ ์Šคํƒ€์ผ ์ถ”๊ฐ€, ๋ถˆํ•„์š” ์ฝ”๋“œ ์ •๋ฆฌ
.../Card/cardModal/CardContent.tsx, .../Card/cardModal/CardModal.tsx ์นด๋“œ ์ƒ์„ธ ๋ชจ๋‹ฌ์— ์ฝ”๋ฉ˜ํŠธ ๊ธฐ๋Šฅ, ๋ฐ˜์‘ํ˜•/๋‹คํฌ๋ชจ๋“œ, ์ด๋ฒคํŠธ ํ•ธ๋“ค๋ง ๊ฐœ์„ , ๋ฐ”๋”” ์Šคํฌ๋กค ๋ฝ ์ ์šฉ
.../Card/cardModal/Comment.tsx, .../Card/cardModal/CommentForm.tsx, .../Card/cardModal/CommentModifyForm.tsx, .../Card/cardModal/Comments.tsx ์ฝ”๋ฉ˜ํŠธ ์ปดํฌ๋„ŒํŠธ ์‹ ์„ค: ์ฝ”๋ฉ˜ํŠธ ์ƒ์„ฑ, ์ˆ˜์ •, ์‚ญ์ œ, ๋ฌดํ•œ ์Šคํฌ๋กค, ๋ฐ˜์‘ํ˜• UI ์ง€์›
.../Column/Column.tsx ์นด๋“œ ๋ฆฌ์ŠคํŠธ ๋ฌดํ•œ ์Šคํฌ๋กค๋กœ ์ „ํ™˜, ์—๋Ÿฌ ํ† ์ŠคํŠธ ์ฒ˜๋ฆฌ, ํŽ˜์ด์ง€๋„ค์ด์…˜ UI ์ถ”๊ฐ€
.../api/deleteCard.ts, .../api/deleteComment.ts, .../api/fetchCards.ts, .../api/fetchComments.ts, .../api/postComment.ts, .../api/putCard.ts, .../api/putComment.ts ์นด๋“œ/์ฝ”๋ฉ˜ํŠธ ๊ด€๋ จ CRUD API ํ•จ์ˆ˜ ์ถ”๊ฐ€ ๋ฐ ํŒŒ๋ผ๋ฏธํ„ฐ ๊ตฌ์กฐ ๊ฐœ์„ , ํƒ€์ž… ์™ธ๋ถ€ํ™”
.../api/useCardMutation.ts, .../api/useDeleteCardMutation.ts, .../api/useDeleteCommentMutation.ts, .../api/useInfiniteCards.ts, .../api/useInfiniteComments.ts, .../api/usePostCard.ts, .../api/usePostCommentMutation.ts, .../api/usePutCardMutation.ts, .../api/usePutCommentsMutation.ts, .../api/useUploadCardImage.ts ์นด๋“œ/์ฝ”๋ฉ˜ํŠธ ๊ด€๋ จ ๋ฆฌ์•กํŠธ ์ฟผ๋ฆฌ ํ›… ์‹ ์„ค ๋ฐ ๋กœ์ง ๊ฐœ์„ , ๋ฌดํ•œ ์Šคํฌ๋กค ์ง€์›, ํ† ์ŠคํŠธ ์•Œ๋ฆผ ์ถ”๊ฐ€, ์—๋Ÿฌ ์ฒ˜๋ฆฌ ๊ฐœ์„ 
.../api/useCards.ts ๊ธฐ์กด useCards ํ›… ์‚ญ์ œ(๋ฌดํ•œ ์Šคํฌ๋กค ํ›…์œผ๋กœ ๋Œ€์ฒด)
.../hooks/useInfiniteScroll.ts, .../hooks/useIsmobile.ts, .../hooks/useLockBodyScroll.ts ๋ฌดํ•œ ์Šคํฌ๋กค, ๋ชจ๋ฐ”์ผ ๊ฐ์ง€, ๋ฐ”๋”” ์Šคํฌ๋กค ๋ฝ ์ปค์Šคํ…€ ํ›… ์‹ ์„ค
.../type/ApiResponse.ts, .../type/Comment.type.ts, .../type/CommentFormData.type.ts API ์‘๋‹ต/์ฝ”๋ฉ˜ํŠธ ๊ด€๋ จ ํƒ€์ž… ์‹ ์„ค ๋ฐ ์™ธ๋ถ€ํ™”
.../globals.css ๋‹คํฌ๋ชจ๋“œ, ๋ชจ๋ฐ”์ผ ๋Œ€์‘ ์Šคํƒ€์ผ ๋ฐ ์‹ ๊ทœ Input-readOnly-217 ํด๋ž˜์Šค ์ถ”๊ฐ€
.../shared/components/ThemeToggle.tsx, .../shared/components/common/Avatar.tsx shrink-0 ์œ ํ‹ธ๋ฆฌํ‹ฐ ํด๋ž˜์Šค ์ถ”๊ฐ€๋กœ flexbox ๋‚ด ํฌ๊ธฐ ๊ณ ์ •

Sequence Diagram(s)

sequenceDiagram
  participant User
  participant CardList
  participant Column
  participant useInfiniteCards
  participant API

  User->>CardList: ์Šคํฌ๋กค ๋‹ค์šด
  CardList->>Column: onScroll ์ด๋ฒคํŠธ
  Column->>useInfiniteCards: fetchNextPage()
  useInfiniteCards->>API: fetchCards({columnId, cursorId})
  API-->>useInfiniteCards: ์นด๋“œ ๋ฐ์ดํ„ฐ ํŽ˜์ด์ง€
  useInfiniteCards-->>Column: ๋ฐ์ดํ„ฐ ๋ฐ˜ํ™˜
  Column-->>CardList: ์นด๋“œ ๋ฆฌ์ŠคํŠธ ๋ Œ๋”๋ง
Loading
sequenceDiagram
  participant User
  participant CardModal
  participant CommentForm
  participant usePostCommentMutation
  participant API

  User->>CardModal: ์นด๋“œ ํด๋ฆญ(๋ชจ๋‹ฌ ์˜คํ”ˆ)
  User->>CommentForm: ์ฝ”๋ฉ˜ํŠธ ์ž…๋ ฅ ํ›„ ์ œ์ถœ
  CommentForm->>usePostCommentMutation: mutate({content, ...})
  usePostCommentMutation->>API: postComment(payload)
  API-->>usePostCommentMutation: ์ฝ”๋ฉ˜ํŠธ ์‘๋‹ต
  usePostCommentMutation-->>CommentForm: ์„ฑ๊ณต ์ฝœ๋ฐฑ
  CommentForm-->>CardModal: ์ฝ”๋ฉ˜ํŠธ ๋ฆฌ์ŠคํŠธ ๊ฐฑ์‹ 
Loading

Possibly related PRs

  • CoPlay-FE/coplan#105: ๋Œ€์‹œ๋ณด๋“œ ํŽ˜์ด์ง€ flex ์ปจํ…Œ์ด๋„ˆ ๋ฐ ๋ฐ˜์‘ํ˜• ์Šคํƒ€์ผ ๊ด€๋ จ ์ง์ ‘์  ์ฝ”๋“œ ๋ณ€๊ฒฝ์ด ์žˆ์Šต๋‹ˆ๋‹ค.
  • CoPlay-FE/coplan#101: ์นด๋“œ ๋ชจ๋‹ฌ, ์ฝ”๋ฉ˜ํŠธ ๋ฆฌ์ŠคํŠธ, ๋ฌดํ•œ ์Šคํฌ๋กค, ๋ฐ˜์‘ํ˜• ์Šคํƒ€์ผ ๋“ฑ ๋ณธ PR๊ณผ ์œ ์‚ฌํ•œ ์ฝ”๋“œ ํ๋ฆ„์„ ํฌํ•จํ•ฉ๋‹ˆ๋‹ค.
  • CoPlay-FE/coplan#99: ์นด๋“œ ์ƒ์„ธ ๋ชจ๋‹ฌ UI, ์ฝ”๋ฉ˜ํŠธ ํ†ตํ•ฉ, ์นด๋“œ ์‚ญ์ œ ๋“ฑ ๋ณธ PR๊ณผ ์ง์ ‘์ ์ธ UI/๊ธฐ๋Šฅ์  ์—ฐ๊ด€์„ฑ์ด ์žˆ์Šต๋‹ˆ๋‹ค.

Suggested labels

โœจFeat, ๐Ÿ›Fix

Suggested reviewers

  • LeeCh0129
  • Insung-Jo

Poem

๐Ÿ‡
์ƒˆ๋กœ์šด ์นด๋“œ, ๋Œ“๊ธ€์ด ์ถค์„ ์ถ”๋„ค
๋ฌดํ•œ ์Šคํฌ๋กค๋กœ ๋์—†์ด ํŽผ์ณ์ง„ ๊ธธ
๋‹คํฌ๋ชจ๋“œ, ๋ชจ๋ฐ”์ผ, ๋ชจ๋‘ ๋‹ค ์ฑ™๊ฒผ์ง€
ํ† ์ŠคํŠธ ์•Œ๋ฆผ์— ๊ธฐ๋ถ„๋„ ์—…!
ํ† ๋ผ๋Š” ์˜ค๋Š˜๋„ ์ฝ”๋“œ๋ฅผ ๋‹ฌ๋ ค
โ€œ์‚ญ์ œโ€ ๋ฒ„ํŠผ๋„ ๊ท€์—ฝ๊ฒŒ,
๋Œ€์‹œ๋ณด๋“œ ์„ธ์ƒ์€ ๋”์šฑ ํ’์„ฑํ•ด์กŒ๋„ค!
๐ŸŒŸ

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

๐Ÿ”ง ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

npm error Exit handler never called!
npm error This is an error with npm itself. Please report this error at:
npm error https://github.com/npm/cli/issues
npm error A complete log of this run can be found in: /.npm/_logs/2025-06-22T08_39_13_373Z-debug-0.log


๐Ÿ“œ Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

๐Ÿ“ฅ Commits

Reviewing files that changed from the base of the PR and between 5ea58c8 and 1c14577.

๐Ÿ“’ Files selected for processing (1)
  • src/app/dashboard/[id]/page.tsx (1 hunks)
โœจ Finishing Touches
  • ๐Ÿ“ Generate Docstrings

๐Ÿชง Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 17

๐Ÿงน Nitpick comments (22)
src/app/features/dashboard_Id/type/ApiResponse.ts (1)

1-3: ํƒ€์ž… ์ค‘์•™ํ™”๊ฐ€ ์ž˜ ์ด๋ฃจ์–ด์กŒ์Šต๋‹ˆ๋‹ค.

API ์‘๋‹ต ํƒ€์ž…์„ ์ค‘์•™ํ™”ํ•œ ๊ฒƒ์€ ์ข‹์€ ๊ฐœ์„ ์‚ฌํ•ญ์ž…๋‹ˆ๋‹ค. ์ฝ”๋“œ ์ค‘๋ณต์„ ์ค„์ด๊ณ  ์ผ๊ด€์„ฑ์„ ํ–ฅ์ƒ์‹œ์ผฐ๋„ค์š”.

ํ–ฅํ›„ ํ™•์žฅ์„ฑ์„ ๊ณ ๋ คํ•˜์—ฌ ์ œ๋„ค๋ฆญ ํƒ€์ž…์œผ๋กœ ๊ฐœ์„ ํ•˜๋Š” ๊ฒƒ์„ ๊ณ ๋ คํ•ด๋ณผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค:

-export interface ApiResponse {
-  message: string
-}
+export interface ApiResponse<T = string> {
+  message: T
+  success?: boolean
+  data?: any
+}
src/app/shared/hooks/useLockBodyScroll.ts (1)

7-16: ๊ตฌํ˜„์ด ๊ธฐ๋ณธ์ ์œผ๋กœ ์˜ฌ๋ฐ”๋ฅด์ง€๋งŒ ๋ช‡ ๊ฐ€์ง€ ๊ฐœ์„ ์‚ฌํ•ญ์ด ์žˆ์Šต๋‹ˆ๋‹ค.

ํ˜„์žฌ ๊ตฌํ˜„์€ ์ž‘๋™ํ•˜์ง€๋งŒ ๋‹ค์Œ ์‚ฌํ•ญ๋“ค์„ ๊ณ ๋ คํ•ด๋ณด์„ธ์š”:

  1. SSR ์•ˆ์ „์„ฑ: window ๊ฐ์ฒด ์ฒดํฌ ์ถ”๊ฐ€
  2. ๋ ˆ์ด์•„์›ƒ shift ๋ฐฉ์ง€: ์Šคํฌ๋กค๋ฐ” ๋„ˆ๋น„๋งŒํผ padding ๋ณด์ •
  3. ์ค‘์ฒฉ ๋ชจ๋‹ฌ ์ง€์›: ์ฐธ์กฐ ์นด์šดํŒ…

๋” ๊ฒฌ๊ณ ํ•œ ๊ตฌํ˜„์„ ์œ„ํ•œ ๊ฐœ์„ ์•ˆ:

export function useLockBodyScroll() {
  useEffect(() => {
+   if (typeof window === 'undefined') return
+   
    const originalStyle = window.getComputedStyle(document.body).overflow
+   const originalPadding = window.getComputedStyle(document.body).paddingRight
+   
+   // ์Šคํฌ๋กค๋ฐ” ๋„ˆ๋น„๋งŒํผ padding ์ถ”๊ฐ€๋กœ ๋ ˆ์ด์•„์›ƒ shift ๋ฐฉ์ง€
+   const scrollBarWidth = window.innerWidth - document.documentElement.clientWidth
+   
    document.body.style.overflow = 'hidden'
+   document.body.style.paddingRight = `${parseInt(originalPadding) + scrollBarWidth}px`

    return () => {
      document.body.style.overflow = originalStyle
+     document.body.style.paddingRight = originalPadding
    }
  }, [])
}
src/app/shared/hooks/useIsmobile.ts (2)

3-3: ํ•จ์ˆ˜๋ช…์˜ camelCase ๊ทœ์น™์„ ์ค€์ˆ˜ํ•ด์ฃผ์„ธ์š”.

ํ•จ์ˆ˜๋ช…์ด useIsmobile์ด ์•„๋‹ˆ๋ผ useIsMobile์ด์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. TypeScript/React ๋„ค์ด๋ฐ ์ปจ๋ฒค์…˜์— ๋งž์ถฐ์ฃผ์„ธ์š”.

-export function useIsMobile(breakpoint = 375) {
+export function useIsMobile(breakpoint = 375) {

14-21: resize ์ด๋ฒคํŠธ ์ตœ์ ํ™”๋ฅผ ๊ณ ๋ คํ•ด๋ณด์„ธ์š”.

ํ˜„์žฌ ๊ตฌํ˜„์€ ์ข‹์ง€๋งŒ, ์„ฑ๋Šฅ ํ–ฅ์ƒ์„ ์œ„ํ•ด resize ์ด๋ฒคํŠธ ๋””๋ฐ”์šด์‹ฑ์„ ๊ณ ๋ คํ•ด๋ณผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์„ฑ๋Šฅ ์ตœ์ ํ™”๋ฅผ ์œ„ํ•œ ๋””๋ฐ”์šด์‹ฑ ์ ์šฉ:

  useEffect(() => {
    if (typeof window === 'undefined') return

+   let timeoutId: NodeJS.Timeout
    function handleResize() {
-     setIsMobile(window.innerWidth <= breakpoint)
+     clearTimeout(timeoutId)
+     timeoutId = setTimeout(() => {
+       setIsMobile(window.innerWidth <= breakpoint)
+     }, 100)
    }

    handleResize() // ์ดˆ๊ธฐ ์‹คํ–‰
    window.addEventListener('resize', handleResize)
-   return () => window.removeEventListener('resize', handleResize)
+   return () => {
+     clearTimeout(timeoutId)
+     window.removeEventListener('resize', handleResize)
+   }
  }, [breakpoint])
src/app/features/dashboard_Id/type/CommentFormData.type.ts (1)

18-20: ์ธํ„ฐํŽ˜์ด์Šค ๋„ค์ด๋ฐ ์ผ๊ด€์„ฑ์„ ๊ฐœ์„ ํ•ด์ฃผ์„ธ์š”.

CommentFormData์™€ PutCommentForm์˜ ๋„ค์ด๋ฐ์ด ์ผ๊ด€์ ์ด์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ๋‹ค์Œ ์ค‘ ํ•˜๋‚˜๋กœ ํ†ต์ผํ•˜๋Š” ๊ฒƒ์„ ๊ถŒ์žฅํ•ฉ๋‹ˆ๋‹ค:

์˜ต์…˜ 1: ๋™์‚ฌ ๊ธฐ๋ฐ˜ ๋„ค์ด๋ฐ

-export interface PutCommentForm {
+export interface CommentUpdateFormData {
  content: string
}

์˜ต์…˜ 2: ๋™์ž‘ ๊ธฐ๋ฐ˜ ๋„ค์ด๋ฐ

-export interface CommentFormData {
+export interface CreateCommentForm {
  content: string
  cardId: number
  columnId: number
  dashboardId: number
}
-export interface PutCommentForm {
+export interface UpdateCommentForm {
  content: string
}
src/app/features/dashboard_Id/type/Comment.type.ts (1)

16-16: ๋ถˆํ•„์š”ํ•œ ์œ ๋‹ˆ์˜จ ํƒ€์ž…์„ ๋‹จ์ˆœํ™”ํ•˜์„ธ์š”.

Comment[] | []์—์„œ ๋นˆ ๋ฐฐ์—ด ํƒ€์ž… []์€ Comment[]์— ์ด๋ฏธ ํฌํ•จ๋˜์–ด ์žˆ์œผ๋ฏ€๋กœ ๋ถˆํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.

-  comments: Comment[] | []
+  comments: Comment[]
src/app/features/dashboard_Id/api/postComment.ts (1)

6-6: ํƒ€์ž…๋ช…์˜ ์ผ๊ด€์„ฑ์„ ๊ฐœ์„ ํ•˜์„ธ์š”.

ํ•จ์ˆ˜๋ช…์ด postComment์ธ๋ฐ ํŒŒ๋ผ๋ฏธํ„ฐ ํƒ€์ž…์ด PutCommentForm์œผ๋กœ ๋ช…๋ช…๋˜์–ด ์žˆ์–ด ํ˜ผ๋ž€์„ ์ค„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. PUT๊ณผ POST๋Š” ๋‹ค๋ฅธ HTTP ๋ฉ”์„œ๋“œ์ด๋ฏ€๋กœ ์ผ๊ด€์„ฑ ์žˆ๋Š” ๋ช…๋ช…์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.

ํƒ€์ž…๋ช…์„ PostCommentForm ๋˜๋Š” CommentCreateForm์œผ๋กœ ๋ณ€๊ฒฝํ•˜๋Š” ๊ฒƒ์„ ๊ณ ๋ คํ•ด๋ณด์„ธ์š”.

src/app/features/dashboard_Id/Card/cardFormModals/ColumnList.tsx (1)

1-1: ์‚ฌ์šฉ๋˜์ง€ ์•Š๋Š” import๋ฅผ ์ œ๊ฑฐํ•˜์„ธ์š”.

UseFormSetValue ํƒ€์ž…์ด import๋˜์—ˆ์ง€๋งŒ ์ปดํฌ๋„ŒํŠธ ์ฝ”๋“œ์—์„œ ์‹ค์ œ๋กœ ์‚ฌ์šฉ๋˜์ง€ ์•Š๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ถˆํ•„์š”ํ•œ import๋Š” ์ฝ”๋“œ ๊ฐ€๋…์„ฑ์„ ํ•ด์น˜๊ณ  ๋ฒˆ๋“ค ํฌ๊ธฐ์— ์˜ํ–ฅ์„ ์ค„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

-import { ControllerRenderProps, UseFormSetValue } from 'react-hook-form'
+import { ControllerRenderProps } from 'react-hook-form'
src/app/features/dashboard_Id/api/useCardMutation.ts (1)

56-56: ๋””๋ฒ„๊น… ์ฝ”๋“œ ์ œ๊ฑฐ ํ•„์š”

ํ”„๋กœ๋•์…˜ ํ™˜๊ฒฝ์— ์ ํ•ฉํ•˜์ง€ ์•Š์€ ๋””๋ฒ„๊น…์šฉ console.log ๋ฌธ์ด ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ๊ฐœ๋ฐœ ์™„๋ฃŒ ํ›„ ์ œ๊ฑฐํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

-          console.log('oldData', oldData)
src/app/features/dashboard_Id/api/deleteComment.ts (1)

5-10: API ํ•จ์ˆ˜ ๊ตฌํ˜„ ์Šน์ธ ๋ฐ ๊ฐœ์„  ์ œ์•ˆ

๋Œ“๊ธ€ ์‚ญ์ œ API ํ•จ์ˆ˜์˜ ๊ธฐ๋ณธ ๊ตฌ์กฐ๋Š” ์ ์ ˆํ•ฉ๋‹ˆ๋‹ค. ํ•˜์ง€๋งŒ ๋‹ค์Œ ๊ฐœ์„ ์‚ฌํ•ญ์„ ๊ณ ๋ คํ•ด๋ณด์„ธ์š”:

  1. commentId ํŒŒ๋ผ๋ฏธํ„ฐ ์œ ํšจ์„ฑ ๊ฒ€์‚ฌ (์–‘์ˆ˜ ํ™•์ธ)
  2. API ํ˜ธ์ถœ ์‹คํŒจ ์‹œ ์—๋Ÿฌ ์ฒ˜๋ฆฌ ๊ฐœ์„ 
 export async function deleteComment(commentId: number): Promise<ApiResponse> {
+  if (!commentId || commentId <= 0) {
+    throw new Error('์œ ํšจํ•˜์ง€ ์•Š์€ ๋Œ“๊ธ€ ID์ž…๋‹ˆ๋‹ค.')
+  }
+  
   const res = await authHttpClient.delete(
     `/${process.env.NEXT_PUBLIC_TEAM_ID}/comments/${commentId}`,
   )
   return res.data
 }
src/app/globals.css (1)

112-114: ์ƒˆ๋กœ์šด ๊ณ ์ • ๋„ˆ๋น„ ํด๋ž˜์Šค์˜ ๋„ค์ด๋ฐ์„ ๊ฐœ์„ ํ•ด๋ณด์„ธ์š”.

Input-readOnly-217 ํด๋ž˜์Šค๋ช…์— ํ”ฝ์…€ ๊ฐ’์ด ์ง์ ‘ ํฌํ•จ๋˜์–ด ์žˆ์–ด ์œ ์ง€๋ณด์ˆ˜์„ฑ์ด ๋–จ์–ด์งˆ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

๋” ์˜๋ฏธ ์žˆ๋Š” ์ด๋ฆ„์„ ์‚ฌ์šฉํ•ด๋ณด์„ธ์š”:

-.Input-readOnly-217 {
+.Input-readOnly-compact {
  @apply w-217 cursor-pointer rounded-6 border border-[#D9D9D9] px-16 py-11 pt-14 text-14 text-[#333236] placeholder-gray-400 caret-transparent focus:border-[#44aeff] focus:outline-none dark:border-[#747474] dark:text-[#FFFFFF] dark:focus:border-[#3474a5] mobile:w-280;
}
src/app/features/dashboard_Id/api/usePutCommentsMutation.ts (1)

12-12: ์ฃผ์„ ๋‚ด์šฉ์ด ์ž˜๋ชป๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

๋Œ“๊ธ€ ์ˆ˜์ • ๊ธฐ๋Šฅ์— ๋Œ€ํ•œ hook์ธ๋ฐ "์นด๋“œ ์ƒ์„ฑ ๋ชจ๋‹ฌ์—์„œ ์‚ฌ์šฉ"์ด๋ผ๊ณ  ์ž˜๋ชป ๊ธฐ์žฌ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค.

-// โœ… ์นด๋“œ ์ƒ์„ฑ ๋ชจ๋‹ฌ์—์„œ ์‚ฌ์šฉ (CreateCardForm.tsx)
+// โœ… ๋Œ“๊ธ€ ์ˆ˜์ • ์‹œ ์‚ฌ์šฉ (CommentModifyForm.tsx)
src/app/features/dashboard_Id/Card/cardModal/Comments.tsx (1)

31-31: ๊ณ ์ •๋œ width ๊ฐ’์„ ๋ฐ˜์‘ํ˜•์œผ๋กœ ๋ณ€๊ฒฝํ•˜์„ธ์š”.

w-450๊ณผ ๊ฐ™์€ ๊ณ ์ •๋œ width ๊ฐ’์€ ๋ชจ๋ฐ”์ผ ํ™˜๊ฒฝ์—์„œ ๋ฌธ์ œ๊ฐ€ ๋  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

-<div className="flex w-450 flex-col gap-20">
+<div className="flex w-full max-w-450 flex-col gap-20 mobile:max-w-full">
src/app/features/dashboard_Id/Card/cardModal/CommentModifyForm.tsx (2)

30-31: ํ”„๋กœ๋•์…˜์šฉ ๋””๋ฒ„๊ทธ ๋กœ๊ทธ๋ฅผ ์ œ๊ฑฐํ•˜์„ธ์š”.

์ฝ˜์†” ๋กœ๊ทธ๋Š” ๊ฐœ๋ฐœ ์ค‘์—๋งŒ ์‚ฌ์šฉํ•˜๊ณ  ํ”„๋กœ๋•์…˜ ์ฝ”๋“œ์—์„œ๋Š” ์ œ๊ฑฐํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

-    console.log(data)
-    console.log(commentId)

27-27: ๋ณ€์ˆ˜๋ช…์„ ๋” ๋ช…ํ™•ํ•˜๊ฒŒ ๊ฐœ์„ ํ•˜์„ธ์š”.

๋Œ“๊ธ€ ์ˆ˜์ • ์ž‘์—…์ธ๋ฐ createComment๋ผ๋Š” ์ด๋ฆ„์€ ํ˜ผ๋ž€์„ ์ค„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

-  const { mutate: createComment, isPending } = usePutCommentMutation()
+  const { mutate: updateComment, isPending } = usePutCommentMutation()

๊ทธ๋ฆฌ๊ณ  onSubmit ํ•จ์ˆ˜์—์„œ๋„:

-    createComment({ payload: data, commentId })
+    updateComment({ payload: data, commentId })
src/app/features/dashboard_Id/Card/cardModal/CommentForm.tsx (1)

34-34: ํ”„๋กœ๋•์…˜์šฉ ๋””๋ฒ„๊ทธ ๋กœ๊ทธ๋ฅผ ์ œ๊ฑฐํ•˜์„ธ์š”.

์ฝ˜์†” ๋กœ๊ทธ๋Š” ๊ฐœ๋ฐœ ์ค‘์—๋งŒ ์‚ฌ์šฉํ•˜๊ณ  ํ”„๋กœ๋•์…˜ ์ฝ”๋“œ์—์„œ๋Š” ์ œ๊ฑฐํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

-    console.log(payload)
src/app/features/dashboard_Id/Card/cardModal/Comment.tsx (1)

52-52: ๋Œ“๊ธ€ ์‚ญ์ œ ์‹œ ํ™•์ธ ํ”„๋กฌํ”„ํŠธ๋ฅผ ์ถ”๊ฐ€ํ•˜๋Š” ๊ฒƒ์„ ๊ณ ๋ คํ•˜์„ธ์š”.

์‚ฌ์šฉ์ž์˜ ์‹ค์ˆ˜๋กœ ์ธํ•œ ๋Œ“๊ธ€ ์‚ญ์ œ๋ฅผ ๋ฐฉ์ง€ํ•˜๊ธฐ ์œ„ํ•ด ํ™•์ธ ๋‹จ๊ณ„๋ฅผ ์ถ”๊ฐ€ํ•˜๋ฉด ์ข‹๊ฒ ์Šต๋‹ˆ๋‹ค.

-            <button onClick={() => deleteComment(comment.id)}>์‚ญ์ œ</button>
+            <button onClick={() => {
+              if (confirm('๋Œ“๊ธ€์„ ์‚ญ์ œํ•˜์‹œ๊ฒ ์Šต๋‹ˆ๊นŒ?')) {
+                deleteComment(comment.id)
+              }
+            }}>์‚ญ์ œ</button>
src/app/features/dashboard_Id/Card/cardModal/CardContent.tsx (5)

29-29: ์‚ฌ์šฉํ•˜์ง€ ์•Š๋Š” isPending ๋ณ€์ˆ˜๋ฅผ ์ œ๊ฑฐํ•˜์„ธ์š”.

isPending ๋ณ€์ˆ˜๊ฐ€ ๊ตฌ์กฐ ๋ถ„ํ•ด ํ• ๋‹น๋˜์—ˆ์ง€๋งŒ ์ปดํฌ๋„ŒํŠธ ๋‚ด์—์„œ ์‚ฌ์šฉ๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

-  const { mutate: deleteCard, isPending } = useDeleteCardMutation()
+  const { mutate: deleteCard } = useDeleteCardMutation()

37-40: ์ค‘๋ณต๋œ overflow ์†์„ฑ์„ ์ •๋ฆฌํ•˜์„ธ์š”.

overflow-auto์™€ overflow-y-scroll์ด ์ค‘๋ณต ์ ์šฉ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค. ํ•˜๋‚˜๋งŒ ์‚ฌ์šฉํ•˜๋ฉด ์ถฉ๋ถ„ํ•ฉ๋‹ˆ๋‹ค.

-      className="BG-white relative max-h-764 min-h-764 w-730 overflow-auto overflow-y-scroll rounded-16 px-18 py-30 shadow-lg [mask-image:radial-gradient(white_100%,transparent_100%)] mobile:w-327 mobile:p-16 tablet:w-678 tablet:px-32 tablet:py-24"
+      className="BG-white relative max-h-764 min-h-764 w-730 overflow-y-auto rounded-16 px-18 py-30 shadow-lg [mask-image:radial-gradient(white_100%,transparent_100%)] mobile:w-327 mobile:p-16 tablet:w-678 tablet:px-32 tablet:py-24"

51-68: ๋‹คํฌ ๋ชจ๋“œ ์•„์ด์ฝ˜ ๋ Œ๋”๋ง ์ฝ”๋“œ๋ฅผ ๊ฐ„์†Œํ™”ํ•˜์„ธ์š”.

๋™์ผํ•œ ์กฐ๊ฑด๋ถ€ ๋ Œ๋”๋ง ํŒจํ„ด์ด ๋ฐ˜๋ณต๋˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ํ—ฌํผ ํ•จ์ˆ˜๋‚˜ ์ปดํฌ๋„ŒํŠธ๋กœ ์ถ”์ถœํ•˜๋ฉด ์ฝ”๋“œ ์ค‘๋ณต์„ ์ค„์ผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

๋‹ค์Œ๊ณผ ๊ฐ™์€ ํ—ฌํผ ํ•จ์ˆ˜๋ฅผ ์ถ”๊ฐ€ํ•˜๋Š” ๊ฒƒ์„ ๊ณ ๋ คํ•ด๋ณด์„ธ์š”:

const getImageSrc = (lightSrc: string, darkSrc: string) => {
  return isDark ? darkSrc : lightSrc
}

// ์‚ฌ์šฉ ์˜ˆ:
<Image
  src={getImageSrc('/images/drop-more.svg', '/images/drop-more-darkmode.svg')}
  alt="๋“œ๋กญ ์˜ต์…˜ ๋ณด๊ธฐ"
  width={28}
  height={28}
  className="mobile:size-20"
/>

Also applies to: 98-115


183-183: ๋ถˆํ•„์š”ํ•œ ๋นˆ div ์š”์†Œ๋ฅผ ์ œ๊ฑฐํ•˜์„ธ์š”.

๋นˆ div ์š”์†Œ๊ฐ€ ์•„๋ฌด ์—ญํ• ์„ ํ•˜์ง€ ์•Š์œผ๋ฏ€๋กœ ์ œ๊ฑฐํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

         </div>
-        <div></div>
       </div>

17-194: ์ปดํฌ๋„ŒํŠธ ๋ถ„๋ฆฌ๋ฅผ ๊ณ ๋ คํ•ด๋ณด์„ธ์š”.

CardContent ์ปดํฌ๋„ŒํŠธ๊ฐ€ ์นด๋“œ ํ‘œ์‹œ, ์•ก์…˜ ๋ฉ”๋‰ด, ๋Œ“๊ธ€ ๋“ฑ ์—ฌ๋Ÿฌ ์ฑ…์ž„์„ ๊ฐ€์ง€๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋‹ค์Œ๊ณผ ๊ฐ™์ด ๋ถ„๋ฆฌํ•˜๋ฉด ์œ ์ง€๋ณด์ˆ˜์„ฑ์ด ํ–ฅ์ƒ๋  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค:

  • CardActions: ์ผ€๋ฐฅ ๋ฉ”๋‰ด์™€ ๋‹ซ๊ธฐ ๋ฒ„ํŠผ
  • CardDetails: ์นด๋“œ ์ •๋ณด ํ‘œ์‹œ ๋ถ€๋ถ„
  • CardComments: ๋Œ“๊ธ€ ๊ด€๋ จ ๋ถ€๋ถ„

์ด๋ ‡๊ฒŒ ๋ถ„๋ฆฌํ•˜๋ฉด ๊ฐ ์ปดํฌ๋„ŒํŠธ์˜ ์ฑ…์ž„์ด ๋ช…ํ™•ํ•ด์ง€๊ณ  ํ…Œ์ŠคํŠธํ•˜๊ธฐ๋„ ์‰ฌ์›Œ์ง‘๋‹ˆ๋‹ค.

๐Ÿ“œ Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

๐Ÿ“ฅ Commits

Reviewing files that changed from the base of the PR and between 9169f13 and 6f4d5f5.

โ›” Files ignored due to path filters (3)
  • public/images/close-darkmode.svg is excluded by !**/*.svg
  • public/images/drop-more-darkmode.svg is excluded by !**/*.svg
  • public/images/modify-pen.svg is excluded by !**/*.svg
๐Ÿ“’ Files selected for processing (42)
  • src/app/dashboard/[id]/page.tsx (1 hunks)
  • src/app/features/dashboard_Id/Card/Card.tsx (3 hunks)
  • src/app/features/dashboard_Id/Card/ColumnTitle.tsx (1 hunks)
  • src/app/features/dashboard_Id/Card/cardFormModals/AssigneeList.tsx (1 hunks)
  • src/app/features/dashboard_Id/Card/cardFormModals/ColumnList.tsx (1 hunks)
  • src/app/features/dashboard_Id/Card/cardFormModals/CreateCardForm.tsx (4 hunks)
  • src/app/features/dashboard_Id/Card/cardFormModals/CreateCardModal.tsx (1 hunks)
  • src/app/features/dashboard_Id/Card/cardFormModals/ModifyCardForm.tsx (10 hunks)
  • src/app/features/dashboard_Id/Card/cardModal/CardContent.tsx (1 hunks)
  • src/app/features/dashboard_Id/Card/cardModal/CardModal.tsx (1 hunks)
  • src/app/features/dashboard_Id/Card/cardModal/Comment.tsx (1 hunks)
  • src/app/features/dashboard_Id/Card/cardModal/CommentForm.tsx (1 hunks)
  • src/app/features/dashboard_Id/Card/cardModal/CommentModifyForm.tsx (1 hunks)
  • src/app/features/dashboard_Id/Card/cardModal/Comments.tsx (1 hunks)
  • src/app/features/dashboard_Id/Column/Column.tsx (7 hunks)
  • src/app/features/dashboard_Id/api/deleteCard.ts (1 hunks)
  • src/app/features/dashboard_Id/api/deleteComment.ts (1 hunks)
  • src/app/features/dashboard_Id/api/fetchCards.ts (1 hunks)
  • src/app/features/dashboard_Id/api/fetchComments.ts (1 hunks)
  • src/app/features/dashboard_Id/api/postComment.ts (1 hunks)
  • src/app/features/dashboard_Id/api/putCard.ts (1 hunks)
  • src/app/features/dashboard_Id/api/putComment.ts (1 hunks)
  • src/app/features/dashboard_Id/api/useCardMutation.ts (1 hunks)
  • src/app/features/dashboard_Id/api/useCards.ts (0 hunks)
  • src/app/features/dashboard_Id/api/useDeleteCardMutation.ts (1 hunks)
  • src/app/features/dashboard_Id/api/useDeleteCommentMutation.ts (1 hunks)
  • src/app/features/dashboard_Id/api/useInfiniteCards.ts (1 hunks)
  • src/app/features/dashboard_Id/api/useInfiniteComments.ts (1 hunks)
  • src/app/features/dashboard_Id/api/usePostCard.ts (2 hunks)
  • src/app/features/dashboard_Id/api/usePostCommentMutation.ts (1 hunks)
  • src/app/features/dashboard_Id/api/usePutCardMutation.ts (2 hunks)
  • src/app/features/dashboard_Id/api/usePutCommentsMutation.ts (1 hunks)
  • src/app/features/dashboard_Id/api/useUploadCardImage.ts (1 hunks)
  • src/app/features/dashboard_Id/hooks/useInfiniteScroll.ts (1 hunks)
  • src/app/features/dashboard_Id/type/ApiResponse.ts (1 hunks)
  • src/app/features/dashboard_Id/type/Comment.type.ts (1 hunks)
  • src/app/features/dashboard_Id/type/CommentFormData.type.ts (1 hunks)
  • src/app/globals.css (2 hunks)
  • src/app/shared/components/ThemeToggle.tsx (1 hunks)
  • src/app/shared/components/common/Avatar.tsx (2 hunks)
  • src/app/shared/hooks/useIsmobile.ts (1 hunks)
  • src/app/shared/hooks/useLockBodyScroll.ts (1 hunks)
๐Ÿ’ค Files with no reviewable changes (1)
  • src/app/features/dashboard_Id/api/useCards.ts
๐Ÿงฐ Additional context used
๐Ÿงฌ Code Graph Analysis (22)
src/app/features/dashboard_Id/Card/cardFormModals/CreateCardModal.tsx (1)
src/app/shared/hooks/useLockBodyScroll.ts (1)
  • useLockBodyScroll (7-16)
src/app/features/dashboard_Id/api/deleteComment.ts (1)
src/app/features/dashboard_Id/type/ApiResponse.ts (1)
  • ApiResponse (1-3)
src/app/features/dashboard_Id/api/useDeleteCommentMutation.ts (1)
src/app/features/dashboard_Id/api/deleteComment.ts (1)
  • deleteComment (5-10)
src/app/features/dashboard_Id/Card/cardModal/CardModal.tsx (1)
src/app/shared/hooks/useLockBodyScroll.ts (1)
  • useLockBodyScroll (7-16)
src/app/features/dashboard_Id/Card/cardFormModals/AssigneeList.tsx (2)
src/app/features/dashboard_Id/type/Card.type.ts (1)
  • Assignee (1-5)
src/app/shared/lib/cn.ts (1)
  • cn (4-6)
src/app/features/dashboard_Id/api/deleteCard.ts (1)
src/app/features/dashboard_Id/type/ApiResponse.ts (1)
  • ApiResponse (1-3)
src/app/features/dashboard_Id/api/postComment.ts (1)
src/app/features/dashboard_Id/type/CommentFormData.type.ts (2)
  • PutCommentForm (18-20)
  • CommentResponse (9-16)
src/app/features/dashboard_Id/api/putComment.ts (1)
src/app/features/dashboard_Id/type/CommentFormData.type.ts (2)
  • PutCommentForm (18-20)
  • CommentResponse (9-16)
src/app/features/dashboard_Id/api/usePutCommentsMutation.ts (2)
src/app/features/dashboard_Id/type/CommentFormData.type.ts (2)
  • PutCommentForm (18-20)
  • CommentResponse (9-16)
src/app/features/dashboard_Id/api/putComment.ts (1)
  • putComment (5-14)
src/app/features/dashboard_Id/api/useDeleteCardMutation.ts (1)
src/app/features/dashboard_Id/api/deleteCard.ts (1)
  • deleteCard (5-10)
src/app/features/dashboard_Id/api/usePostCommentMutation.ts (1)
src/app/features/dashboard_Id/api/postComment.ts (1)
  • postComment (5-13)
src/app/features/dashboard_Id/Card/cardModal/Comments.tsx (4)
src/app/features/dashboard_Id/api/useInfiniteComments.ts (1)
  • useInfiniteComments (6-17)
src/app/features/dashboard_Id/hooks/useInfiniteScroll.ts (1)
  • useInfiniteScroll (11-39)
src/app/features/dashboard_Id/type/Comment.type.ts (1)
  • Comment (6-13)
src/app/features/dashboard_Id/Card/cardModal/Comment.tsx (1)
  • Comment (11-58)
src/app/features/dashboard_Id/api/fetchComments.ts (1)
src/app/features/dashboard_Id/type/Comment.type.ts (1)
  • CommentsResponse (14-17)
src/app/features/dashboard_Id/api/useInfiniteComments.ts (2)
src/app/features/dashboard_Id/type/Comment.type.ts (1)
  • CommentsResponse (14-17)
src/app/features/dashboard_Id/api/fetchComments.ts (1)
  • fetchComments (5-25)
src/app/features/dashboard_Id/Card/cardModal/CommentModifyForm.tsx (2)
src/app/features/dashboard_Id/type/CommentFormData.type.ts (1)
  • PutCommentForm (18-20)
src/app/features/dashboard_Id/api/usePutCommentsMutation.ts (1)
  • usePutCommentMutation (13-30)
src/app/features/dashboard_Id/type/CommentFormData.type.ts (1)
src/app/features/dashboard_Id/type/Comment.type.ts (1)
  • Auth (1-5)
src/app/features/dashboard_Id/api/useInfiniteCards.ts (2)
src/app/features/dashboard_Id/type/Card.type.ts (1)
  • CardResponse (21-25)
src/app/features/dashboard_Id/api/fetchCards.ts (1)
  • fetchCards (5-25)
src/app/features/dashboard_Id/Card/cardModal/CommentForm.tsx (2)
src/app/features/dashboard_Id/type/CommentFormData.type.ts (1)
  • CommentFormData (3-8)
src/app/features/dashboard_Id/api/usePostCommentMutation.ts (1)
  • usePostCommentMutation (7-24)
src/app/features/dashboard_Id/api/fetchCards.ts (1)
src/app/features/dashboard_Id/type/Card.type.ts (1)
  • CardResponse (21-25)
src/app/features/dashboard_Id/type/Comment.type.ts (1)
src/app/features/dashboard_Id/Card/cardModal/Comment.tsx (1)
  • Comment (11-58)
src/app/features/dashboard_Id/Card/cardFormModals/CreateCardForm.tsx (2)
src/app/features/dashboard_Id/Card/MyAssignee.tsx (1)
  • MyAssignee (5-18)
src/app/shared/lib/cn.ts (1)
  • cn (4-6)
src/app/features/dashboard_Id/Card/cardFormModals/ModifyCardForm.tsx (2)
src/app/features/dashboard_Id/Card/MyAssignee.tsx (1)
  • MyAssignee (5-18)
src/app/shared/lib/cn.ts (1)
  • cn (4-6)
โฐ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: eslint-check
๐Ÿ”‡ Additional comments (63)
src/app/features/dashboard_Id/api/putCard.ts (1)

3-3: ํƒ€์ž… import๊ฐ€ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์ ์šฉ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

์ค‘์•™ํ™”๋œ ApiResponse ํƒ€์ž…์„ ์‚ฌ์šฉํ•˜๋„๋ก ๋ณ€๊ฒฝํ•œ ๊ฒƒ์ด ์ข‹์Šต๋‹ˆ๋‹ค. ํƒ€์ž… ์ผ๊ด€์„ฑ๊ณผ ์œ ์ง€๋ณด์ˆ˜์„ฑ์ด ํ–ฅ์ƒ๋˜์—ˆ๋„ค์š”.

src/app/features/dashboard_Id/type/CommentFormData.type.ts (2)

3-8: CommentFormData ์ธํ„ฐํŽ˜์ด์Šค๊ฐ€ ์ž˜ ์ •์˜๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

๋Œ“๊ธ€ ์ƒ์„ฑ์— ํ•„์š”ํ•œ ๋ชจ๋“  ํ•„๋“œ๊ฐ€ ์ ์ ˆํžˆ ํฌํ•จ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค.


9-16: ํƒ€์ž„์Šคํƒฌํ”„ ํƒ€์ž… ๊ฒ€์ฆ์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.

createdAt๊ณผ updatedAt ํ•„๋“œ๊ฐ€ number ํƒ€์ž…์œผ๋กœ ์ •์˜๋˜์–ด ์žˆ๋Š”๋ฐ, ์‹ค์ œ API ์‘๋‹ต์—์„œ ์ด ํƒ€์ž…์ด ๋งž๋Š”์ง€ ํ™•์ธํ•ด์ฃผ์„ธ์š”.

#!/bin/bash
# ์„ค๋ช…: API ์‘๋‹ต์—์„œ ํƒ€์ž„์Šคํƒฌํ”„ ํƒ€์ž… ํ™•์ธ

# ๋Œ“๊ธ€ API ์‘๋‹ต ๊ตฌ์กฐ ํ™•์ธ
rg -A 10 -B 2 "createdAt|updatedAt" --type ts
src/app/features/dashboard_Id/type/Comment.type.ts (2)

1-17: ์ธํ„ฐํŽ˜์ด์Šค ์„ค๊ณ„๊ฐ€ ์ž˜ ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค.

๋Œ“๊ธ€ ์‹œ์Šคํ…œ์˜ ํ•ต์‹ฌ ํƒ€์ž…๋“ค์ด ๋ช…ํ™•ํ•˜๊ฒŒ ์ •์˜๋˜์–ด ์žˆ๊ณ , ๊ด€๋ จ ์ปดํฌ๋„ŒํŠธ์—์„œ์˜ ์‚ฌ์šฉ ํŒจํ„ด๊ณผ ์ž˜ ๋งž์•„๋–จ์–ด์ง‘๋‹ˆ๋‹ค. ํŠนํžˆ Auth ์ธํ„ฐํŽ˜์ด์Šค๋ฅผ ๋ณ„๋„๋กœ ๋ถ„๋ฆฌํ•œ ๊ฒƒ์ด ์žฌ์‚ฌ์šฉ์„ฑ ์ธก๋ฉด์—์„œ ์ข‹์€ ์„ค๊ณ„์ž…๋‹ˆ๋‹ค.


9-10: ๋‹ค์Œ๊ณผ ๊ฐ™์ด glob ์˜ต์…˜์œผ๋กœ .ts ํŒŒ์ผ๋งŒ ๊ฒ€์ƒ‰ํ•˜๋„๋ก ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์ˆ˜์ •ํ•ด ๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค.

#!/bin/bash
# createdAt, updatedAt ํƒ€์ž… ์ •์˜ ๋ฐ ์‚ฌ์šฉ ํ˜„ํ™ฉ ํ™•์ธ

# ๋ชจ๋“  .ts ํŒŒ์ผ์—์„œ createdAt ํ•„๋“œ ๊ฒ€์ƒ‰
rg -n "createdAt\s*:" --glob '*.ts'

# ๋ชจ๋“  .ts ํŒŒ์ผ์—์„œ updatedAt ํ•„๋“œ ๊ฒ€์ƒ‰
rg -n "updatedAt\s*:" --glob '*.ts'
src/app/features/dashboard_Id/api/postComment.ts (1)

5-13: PutCommentForm ์ •์˜๊ฐ€ ์žˆ๋Š” ํŒŒ์ผ์„ ์ •ํ™•ํžˆ ์ฐพ์•„ ๋‚ด์šฉ์„ ์ถœ๋ ฅํ•ด ๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค.

#!/bin/bash
# PutCommentForm ์ธํ„ฐํŽ˜์ด์Šค ์ •์˜ ํŒŒ์ผ ์ฐพ๊ธฐ
FILE=$(rg -l "^export interface PutCommentForm" -g "*CommentFormData.type.ts")
echo "Definition file: $FILE"

# ํ•ด๋‹น ํŒŒ์ผ ์ƒ์œ„ 200๋ผ์ธ ์ถœ๋ ฅ
sed -n '1,200p' "$FILE"
src/app/features/dashboard_Id/Card/ColumnTitle.tsx (1)

5-5: UI ์ผ๊ด€์„ฑ ๊ฐœ์„ ์ด ์ž˜ ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

whitespace-nowrap ํด๋ž˜์Šค ์ถ”๊ฐ€๋กœ ์ปฌ๋Ÿผ ํƒ€์ดํ‹€์ด ํ•ญ์ƒ ํ•œ ์ค„์— ํ‘œ์‹œ๋˜์–ด ๋ ˆ์ด์•„์›ƒ์˜ ์ผ๊ด€์„ฑ๊ณผ ๊ฐ€๋…์„ฑ์ด ํ–ฅ์ƒ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ํŠนํžˆ ๋ฐ˜์‘ํ˜• ๋””์ž์ธ์—์„œ ์ปฌ๋Ÿผ ํƒ€์ดํ‹€์˜ ์•ˆ์ •์ ์ธ ํ‘œ์‹œ์— ๋„์›€์ด ๋  ๊ฒƒ์ž…๋‹ˆ๋‹ค.

src/app/shared/components/ThemeToggle.tsx (1)

18-18: Flexbox ๋™์ž‘ ๊ฐœ์„ ์ด ์ ์ ˆํ•ฉ๋‹ˆ๋‹ค.

shrink-0 ํด๋ž˜์Šค ์ถ”๊ฐ€๋กœ ThemeToggle ๋ฒ„ํŠผ์ด flex ์ปจํ…Œ์ด๋„ˆ์—์„œ ๊ณ ์ • ํฌ๊ธฐ๋ฅผ ์œ ์ง€ํ•˜๋„๋ก ๊ฐœ์„ ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ์ด๋Š” ๋‹ค์–‘ํ•œ ๋ ˆ์ด์•„์›ƒ ์ƒํ™ฉ์—์„œ ๋ฒ„ํŠผ์˜ ์ผ๊ด€๋œ ๋ชจ์–‘์„ ๋ณด์žฅํ•˜๋Š” ์ข‹์€ ๋ณ€๊ฒฝ์‚ฌํ•ญ์ž…๋‹ˆ๋‹ค.

src/app/features/dashboard_Id/Card/cardFormModals/CreateCardModal.tsx (2)

3-3: ์Šคํฌ๋กค ์ž ๊ธˆ ๊ธฐ๋Šฅ ์ถ”๊ฐ€ ์Šน์ธ

useLockBodyScroll ํ›… ์ถ”๊ฐ€๋กœ ๋ชจ๋‹ฌ์ด ์—ด๋ ธ์„ ๋•Œ ๋ฐฐ๊ฒฝ ์Šคํฌ๋กค์„ ๋ฐฉ์ง€ํ•˜๋Š” ๊ฒƒ์€ ์ข‹์€ UX ๊ฐœ์„ ์ž…๋‹ˆ๋‹ค. CardModal๊ณผ์˜ ์ผ๊ด€์„ฑ๋„ ์œ ์ง€๋˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.

Also applies to: 11-11


17-17: ๋ฐ˜์‘ํ˜• ์Šคํƒ€์ผ๋ง ๊ฐœ์„  ์Šน์ธ

๋ชจ๋ฐ”์ผ ๋””๋ฐ”์ด์Šค ์ง€์›์„ ์œ„ํ•œ ๋ฐ˜์‘ํ˜• ํด๋ž˜์Šค ์ถ”๊ฐ€๊ฐ€ ์ ์ ˆํ•ฉ๋‹ˆ๋‹ค. mobile:h-766 mobile:w-327 mobile:px-16 mobile:py-24 ํด๋ž˜์Šค๋“ค์ด ๋ชจ๋ฐ”์ผ ํ™˜๊ฒฝ์—์„œ์˜ ์‚ฌ์šฉ์„ฑ์„ ํ–ฅ์ƒ์‹œํ‚ฌ ๊ฒƒ์ž…๋‹ˆ๋‹ค.

src/app/features/dashboard_Id/Card/cardModal/CardModal.tsx (2)

3-3: ๋ชจ๋‹ฌ ์ผ๊ด€์„ฑ ๊ฐœ์„  ์Šน์ธ

CreateCardModal๊ณผ ๋™์ผํ•œ useLockBodyScroll ํ›…์„ ์ ์šฉํ•˜์—ฌ ๋ชจ๋‹ฌ ๊ฐ„ ์ผ๊ด€์„ฑ์„ ์œ ์ง€ํ•œ ๊ฒƒ์ด ์ข‹์Šต๋‹ˆ๋‹ค. ์‚ฌ์šฉ์ž ๊ฒฝํ—˜์ด ํ–ฅ์ƒ๋  ๊ฒƒ์ž…๋‹ˆ๋‹ค.

Also applies to: 11-11


17-17: ๋ชจ๋‹ฌ ๊ตฌ์กฐ ๋‹จ์ˆœํ™” ์Šน์ธ

๋ณต์žกํ•œ ์Šคํƒ€์ผ๋ง์„ ์ œ๊ฑฐํ•˜๊ณ  ๋‹จ์ˆœํ•œ wrapper div๋กœ ๋ณ€๊ฒฝํ•œ ๊ฒƒ์ด ์ ์ ˆํ•ฉ๋‹ˆ๋‹ค. ๋” ๊น”๋”ํ•˜๊ณ  ์œ ์ง€๋ณด์ˆ˜ํ•˜๊ธฐ ์‰ฌ์šด ๊ตฌ์กฐ๊ฐ€ ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

src/app/features/dashboard_Id/api/usePostCard.ts (1)

3-3: ์‚ฌ์šฉ์ž ํ”ผ๋“œ๋ฐฑ ๊ฐœ์„  ์Šน์ธ

์„ฑ๊ณต/์‹คํŒจ ์‹œ ํ† ์ŠคํŠธ ์•Œ๋ฆผ์„ ์ถ”๊ฐ€ํ•˜์—ฌ ์‚ฌ์šฉ์ž ๊ฒฝํ—˜์ด ํฌ๊ฒŒ ํ–ฅ์ƒ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ๋‹ค๋ฅธ mutation ํ›…๋“ค๊ณผ ์ผ๊ด€์„ฑ ์žˆ๋Š” ํ”ผ๋“œ๋ฐฑ ์‹œ์Šคํ…œ์„ ๊ตฌ์ถ•ํ•œ ๊ฒƒ์ด ์ข‹์Šต๋‹ˆ๋‹ค.

Also applies to: 14-14, 18-19

src/app/shared/components/common/Avatar.tsx (2)

53-53: flex ์ปจํ…Œ์ด๋„ˆ์—์„œ ์•„๋ฐ”ํƒ€ ํฌ๊ธฐ ์œ ์ง€ ๊ฐœ์„ ์ด ์ข‹์Šต๋‹ˆ๋‹ค.

shrink-0 ํด๋ž˜์Šค ์ถ”๊ฐ€๋กœ flex ์ปจํ…Œ์ด๋„ˆ ๋‚ด์—์„œ ์•„๋ฐ”ํƒ€๊ฐ€ ์˜๋„๋œ ํฌ๊ธฐ๋ฅผ ์œ ์ง€ํ•  ์ˆ˜ ์žˆ๊ฒŒ ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.


65-65: ์ผ๊ด€๋œ ์Šคํƒ€์ผ๋ง ์ ์šฉ์ด ์ข‹์Šต๋‹ˆ๋‹ค.

ํด๋ฐฑ ์•„๋ฐ”ํƒ€์—๋„ ๋™์ผํ•œ shrink-0 ํด๋ž˜์Šค๋ฅผ ์ ์šฉํ•˜์—ฌ ์ผ๊ด€์„ฑ์„ ์œ ์ง€ํ–ˆ์Šต๋‹ˆ๋‹ค.

src/app/globals.css (2)

73-73: ๋‹คํฌ ๋ชจ๋“œ ํ…Œ๋‘๋ฆฌ ์ƒ‰์ƒ ๊ฐœ์„ ์ด ์ข‹์Šต๋‹ˆ๋‹ค.

๊ฒ€์€์ƒ‰์—์„œ ์ค‘๊ฐ„ ํšŒ์ƒ‰(#454545)์œผ๋กœ ๋ณ€๊ฒฝํ•˜์—ฌ ๋‹คํฌ ๋ชจ๋“œ์—์„œ ๋” ๋ถ€๋“œ๋Ÿฌ์šด ์‹œ๊ฐ์  ๊ฒฝํ—˜์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.


107-111: ๋ชจ๋ฐ”์ผ ๋ฐ˜์‘ํ˜• ์ง€์› ์ถ”๊ฐ€๊ฐ€ ์ข‹์Šต๋‹ˆ๋‹ค.

์ž…๋ ฅ ํ•„๋“œ์— mobile:w-280 ํด๋ž˜์Šค๋ฅผ ์ถ”๊ฐ€ํ•˜์—ฌ ๋ชจ๋ฐ”์ผ ๋””๋ฐ”์ด์Šค์—์„œ ์ ์ ˆํ•œ ๋„ˆ๋น„๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.

src/app/features/dashboard_Id/Card/cardFormModals/AssigneeList.tsx (2)

31-31: ๋ช…์‹œ์ ์ธ ํ…Œ๋‘๋ฆฌ ์ƒ‰์ƒ ์‚ฌ์šฉ์œผ๋กœ ์Šคํƒ€์ผ๋ง ์ผ๊ด€์„ฑ ๊ฐœ์„ .

๊ธฐ์กด Border-btn ํด๋ž˜์Šค ๋Œ€์‹  ๋ผ์ดํŠธ/๋‹คํฌ ๋ชจ๋“œ๋ณ„ ๋ช…์‹œ์ ์ธ ํ…Œ๋‘๋ฆฌ ์ƒ‰์ƒ์„ ์‚ฌ์šฉํ•˜์—ฌ ๋” ์ •ํ™•ํ•œ ์Šคํƒ€์ผ ์ œ์–ด๊ฐ€ ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค.


36-38: ๋‹ด๋‹น์ž ํ•ญ๋ชฉ ๊ฐ„ ๊ตฌ๋ถ„์„  ์Šคํƒ€์ผ๋ง ๊ฐœ์„ .

์ฒซ ๋ฒˆ์งธ ํ•ญ๋ชฉ์„ ์ œ์™ธํ•œ ๋‚˜๋จธ์ง€ ํ•ญ๋ชฉ์— ํ…Œ๋‘๋ฆฌ์™€ ํ…์ŠคํŠธ ํฌ๊ธฐ๋ฅผ ๋ช…์‹œ์ ์œผ๋กœ ์ง€์ •ํ•˜์—ฌ ๋‹คํฌ ๋ชจ๋“œ์—์„œ๋„ ์ผ๊ด€๋œ ํ‘œ์‹œ๊ฐ€ ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค.

src/app/features/dashboard_Id/api/useUploadCardImage.ts (1)

12-17: ์—๋Ÿฌ ํ•ธ๋“ค๋ง ๊ฐœ์„ ์ด ์ ์ ˆํ•ฉ๋‹ˆ๋‹ค

์‚ฌ์šฉ์ž์šฉ ๊ณ ์ • ๋ฉ”์‹œ์ง€์™€ ๊ฐœ๋ฐœ์ž์šฉ ์„œ๋ฒ„ ์—๋Ÿฌ ๋กœ๊ทธ๋ฅผ ๋ถ„๋ฆฌํ•œ ์ ‘๊ทผ ๋ฐฉ์‹์ด ์ข‹์Šต๋‹ˆ๋‹ค. ์‚ฌ์šฉ์ž ๊ฒฝํ—˜์„ ๊ฐœ์„ ํ•˜๋ฉด์„œ ๋””๋ฒ„๊น…์— ํ•„์š”ํ•œ ์ •๋ณด๋„ ๋ณด์กดํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.

src/app/features/dashboard_Id/api/usePutCardMutation.ts (1)

8-34: ์นด๋“œ ์ˆ˜์ • ๊ธฐ๋Šฅ์ด ์ž˜ ๊ตฌํ˜„๋˜์—ˆ์Šต๋‹ˆ๋‹ค

ํ† ์ŠคํŠธ ์•Œ๋ฆผ ์ถ”๊ฐ€์™€ columnId ์ฟผ๋ฆฌ ๋ฌดํšจํ™”๋กœ ์‚ฌ์šฉ์ž ๊ฒฝํ—˜๊ณผ ๋ฐ์ดํ„ฐ ์ผ๊ด€์„ฑ์ด ๋ชจ๋‘ ๊ฐœ์„ ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ์—๋Ÿฌ ํ•ธ๋“ค๋ง๋„ ์ ์ ˆํ•ฉ๋‹ˆ๋‹ค.

src/app/features/dashboard_Id/api/useDeleteCardMutation.ts (1)

6-20: ์นด๋“œ ์‚ญ์ œ ๊ธฐ๋Šฅ์ด ์ž˜ ๊ตฌํ˜„๋˜์—ˆ์Šต๋‹ˆ๋‹ค

ํ† ์ŠคํŠธ ์•Œ๋ฆผ, ์ฟผ๋ฆฌ ์บ์‹œ ๋ฌดํšจํ™”, ์—๋Ÿฌ ํ•ธ๋“ค๋ง์ด ๋ชจ๋‘ ์ ์ ˆํ•˜๊ฒŒ ๊ตฌํ˜„๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค. ๋‹ค๋ฅธ mutation ํ›…๋“ค๊ณผ ์ผ๊ด€๋œ ํŒจํ„ด์„ ๋”ฐ๋ฅด๊ณ  ์žˆ์–ด ์ข‹์Šต๋‹ˆ๋‹ค.

src/app/dashboard/[id]/page.tsx (2)

150-150: ๋ฐ˜์‘ํ˜• ๋ ˆ์ด์•„์›ƒ ๊ฐœ์„ ์ด ์ ์ ˆํ•ฉ๋‹ˆ๋‹ค.

flex ํด๋ž˜์Šค ์ˆœ์„œ๋ฅผ ์กฐ์ •ํ•˜์—ฌ ๋ชจ๋ฐ”์ผ๊ณผ ํƒœ๋ธ”๋ฆฟ์—์„œ ์„ธ๋กœ ๋ฐฉํ–ฅ ๋ ˆ์ด์•„์›ƒ์œผ๋กœ ๋ณ€๊ฒฝํ•œ ๊ฒƒ์ด ์ข‹์Šต๋‹ˆ๋‹ค.


158-160: ๋ฐ˜์‘ํ˜• ๋ฒ„ํŠผ ์Šคํƒ€์ผ๋ง์ด ์ž˜ ์ ์šฉ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

๋ชจ๋ฐ”์ผ๊ณผ ํƒœ๋ธ”๋ฆฟ์—์„œ์˜ ๋ฒ„ํŠผ ๋ ˆ์ด์•„์›ƒ๊ณผ ์Šคํƒ€์ผ๋ง์ด ์ ์ ˆํ•˜๊ฒŒ ๊ตฌํ˜„๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

src/app/features/dashboard_Id/api/fetchComments.ts (1)

19-19: ์กฐ๊ฑด๋ถ€ ํŒŒ๋ผ๋ฏธํ„ฐ ์ฒ˜๋ฆฌ๊ฐ€ ์ ์ ˆํ•ฉ๋‹ˆ๋‹ค.

์ฒซ ํŽ˜์ด์ง€์—์„œ cursorId๋ฅผ ์ƒ๋žตํ•˜๋Š” ๋กœ์ง์ด ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ๊ตฌํ˜„๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

src/app/features/dashboard_Id/api/useInfiniteCards.ts (1)

11-16: ๋ฌดํ•œ ์Šคํฌ๋กค ๋กœ์ง์ด ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ๊ตฌํ˜„๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

getNextPageParam ํ•จ์ˆ˜๊ฐ€ ์ ์ ˆํžˆ ๊ตฌํ˜„๋˜์–ด ์žˆ๊ณ , ํŽ˜์ด์ง€๋„ค์ด์…˜ ๋กœ์ง์ด ์ •ํ™•ํ•ฉ๋‹ˆ๋‹ค.

src/app/features/dashboard_Id/api/fetchCards.ts (1)

5-25: API ํ•จ์ˆ˜๊ฐ€ ์ž˜ ๊ตฌํ˜„๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

๋งค๊ฐœ๋ณ€์ˆ˜ ๊ตฌ์กฐํ™”์™€ ์กฐ๊ฑด๋ถ€ cursorId ์ฒ˜๋ฆฌ๊ฐ€ ์ ์ ˆํ•˜๋ฉฐ, ๋ฌดํ•œ ์Šคํฌ๋กค์„ ์œ„ํ•œ ํŽ˜์ด์ง€๋„ค์ด์…˜ ์ง€์›์ด ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ๊ตฌํ˜„๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

src/app/features/dashboard_Id/Card/cardModal/CommentForm.tsx (1)

27-37: ํผ ์ œ์ถœ ๋กœ์ง์ด ์ ์ ˆํžˆ ๊ตฌํ˜„๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

๋ฐ์ดํ„ฐ ๋ณ‘ํ•ฉ๊ณผ ๋ฎคํ…Œ์ด์…˜ ํ˜ธ์ถœ, ํผ ๋ฆฌ์…‹์ด ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์ฒ˜๋ฆฌ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

src/app/features/dashboard_Id/Card/cardModal/Comment.tsx (2)

18-30: ๋ฐ˜์‘ํ˜• ๋””์ž์ธ์ด ์ž˜ ๊ตฌํ˜„๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

useIsMobile ํ›…์„ ์‚ฌ์šฉํ•œ ์กฐ๊ฑด๋ถ€ ์•„๋ฐ”ํƒ€ ํฌ๊ธฐ ์กฐ์ •์ด ์ ์ ˆํ•ฉ๋‹ˆ๋‹ค.


40-48: ์กฐ๊ฑด๋ถ€ ๋ Œ๋”๋ง ๋กœ์ง์ด ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ๊ตฌํ˜„๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

์ˆ˜์ • ๋ชจ๋“œ์™€ ํ‘œ์‹œ ๋ชจ๋“œ ๊ฐ„์˜ ์ „ํ™˜์ด ๋ช…ํ™•ํ•˜๊ณ  ์‚ฌ์šฉ์ž ์นœํ™”์ ์ž…๋‹ˆ๋‹ค.

src/app/features/dashboard_Id/Card/cardFormModals/CreateCardForm.tsx (5)

17-17: MyAssignee ์ปดํฌ๋„ŒํŠธ import ์ถ”๊ฐ€ ์Šน์ธ

๋‹ด๋‹น์ž ์„ ํƒ UI ๊ฐœ์„ ์„ ์œ„ํ•œ ์ƒˆ๋กœ์šด ์ปดํฌ๋„ŒํŠธ import๊ฐ€ ์ ์ ˆํ•ฉ๋‹ˆ๋‹ค.


124-128: ๋‹ด๋‹น์ž ํ‘œ์‹œ UI ๊ฐœ์„  ์Šน์ธ

์„ ํƒ๋œ ๋‹ด๋‹น์ž๋ฅผ ์ž…๋ ฅ ํ•„๋“œ ๋‚ด์— ์ ˆ๋Œ€ ์œ„์น˜๋กœ ํ‘œ์‹œํ•˜๋Š” ๋ฐฉ์‹์ด ์‚ฌ์šฉ์ž ๊ฒฝํ—˜์„ ํ–ฅ์ƒ์‹œํ‚ต๋‹ˆ๋‹ค. ๋‹คํฌ ๋ชจ๋“œ ๋ฐฐ๊ฒฝ์ƒ‰๋„ ์ ์ ˆํžˆ ์ ์šฉ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.


135-135: ๋ชจ๋ฐ”์ผ ๋ฐ˜์‘ํ˜• ์Šคํƒ€์ผ ๊ฐœ์„  ์Šน์ธ

๋“œ๋กญ๋‹ค์šด ํ™”์‚ดํ‘œ์˜ ๋ชจ๋ฐ”์ผ ์œ„์น˜ ์กฐ์ •์ด ์ ์ ˆํ•ฉ๋‹ˆ๋‹ค.


237-276: ์ด๋ฏธ์ง€ ์—…๋กœ๋“œ UI ๊ตฌ์กฐ ๊ฐœ์„  ์Šน์ธ

์ด๋ฏธ์ง€ ์—…๋กœ๋“œ UI์˜ ๊ตฌ์กฐ์  ๊ฐœ์„ ์‚ฌํ•ญ๋“ค์ด ์šฐ์ˆ˜ํ•ฉ๋‹ˆ๋‹ค:

  • ๋ผ๋ฒจ ๋ž˜ํผ ์Šคํƒ€์ผ๋ง ์ถ”๊ฐ€
  • ์—…๋กœ๋“œ ์ค‘ ์ƒํƒœ์— ๋Œ€ํ•œ ์กฐ๊ฑด๋ถ€ ๋ Œ๋”๋ง
  • ์ด๋ฏธ์ง€ ์‚ญ์ œ ๋ฒ„ํŠผ ์œ„์น˜ ๋ฐ ํ…์ŠคํŠธ ๊ฐœ์„  ("์‚ญ์ œ")
  • ๋‹คํฌ ๋ชจ๋“œ ํ…Œ๋‘๋ฆฌ ์Šคํƒ€์ผ ์ถ”๊ฐ€

๋ชจ๋“  ๋ณ€๊ฒฝ์‚ฌํ•ญ์ด ์‚ฌ์šฉ์ž ๊ฒฝํ—˜์„ ํ–ฅ์ƒ์‹œํ‚ต๋‹ˆ๋‹ค.


296-296: ์ œ์ถœ ๋ฒ„ํŠผ ๋‹คํฌ ๋ชจ๋“œ ์ง€์› ์Šน์ธ

disabled ์ƒํƒœ์— ๋Œ€ํ•œ ๋‹คํฌ ๋ชจ๋“œ ์Šคํƒ€์ผ๋ง์ด ์ ์ ˆํžˆ ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

src/app/features/dashboard_Id/Column/Column.tsx (8)

3-3: ๋ฌดํ•œ ์Šคํฌ๋กค ๊ด€๋ จ import ์ถ”๊ฐ€ ์Šน์ธ

ํ† ์ŠคํŠธ ์•Œ๋ฆผ, ๋ฌดํ•œ ์Šคํฌ๋กค API ํ›…, ์ปค์Šคํ…€ ๋ฌดํ•œ ์Šคํฌ๋กค ํ›…์˜ ์ถ”๊ฐ€๊ฐ€ ์ ์ ˆํ•ฉ๋‹ˆ๋‹ค.

Also applies to: 8-8, 12-12


27-36: ๋ฌดํ•œ ์Šคํฌ๋กค ๋ฐ์ดํ„ฐ ํŽ˜์นญ ๋กœ์ง ์Šน์ธ

๊ธฐ์กด ํŽ˜์ด์ง€๋„ค์ด์…˜์—์„œ ๋ฌดํ•œ ์Šคํฌ๋กค๋กœ์˜ ์ „ํ™˜์ด ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ๊ตฌํ˜„๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ํ•„์š”ํ•œ ๋ชจ๋“  ์ƒํƒœ๊ฐ’๋“ค(fetchNextPage, hasNextPage, isFetchingNextPage ๋“ฑ)์ด ์ ์ ˆํžˆ ๊ตฌ์กฐ๋ถ„ํ•ด๋˜์—ˆ์Šต๋‹ˆ๋‹ค.


36-36: ๋ฌดํ•œ ์Šคํฌ๋กค ํ›… ์‚ฌ์šฉ ์Šน์ธ

useInfiniteScroll ํ›…์˜ ์‚ฌ์šฉ์ด ๊ฐ„๊ฒฐํ•˜๊ณ  ์ ์ ˆํ•ฉ๋‹ˆ๋‹ค.


54-55: ์—๋Ÿฌ ์ฒ˜๋ฆฌ ๊ฐœ์„  ์Šน์ธ

ํ† ์ŠคํŠธ ์•Œ๋ฆผ์„ ์‚ฌ์šฉํ•œ ์—๋Ÿฌ ์ฒ˜๋ฆฌ ๋ฐฉ์‹์ด ์‚ฌ์šฉ์ž ๊ฒฝํ—˜์„ ๊ฐœ์„ ํ•ฉ๋‹ˆ๋‹ค.


85-85: ๋ฐ˜์‘ํ˜• ์Šคํƒ€์ผ ๊ฐœ์„  ์Šน์ธ

๋ชจ๋ฐ”์ผ, ํƒœ๋ธ”๋ฆฟ์— ๋Œ€ํ•œ ๋„ˆ๋น„ ์กฐ์ •์ด ์ ์ ˆํ•ฉ๋‹ˆ๋‹ค.


96-96: ์นด๋“œ ๊ฐœ์ˆ˜ ํ‘œ์‹œ ๋กœ์ง ๊ฐœ์„  ์Šน์ธ

ํŽ˜์ด์ง€ ๊ตฌ์กฐ์—์„œ ์ฒซ ๋ฒˆ์งธ ํŽ˜์ด์ง€์˜ totalCount๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๋ฐฉ์‹์ด ์˜ฌ๋ฐ”๋ฆ…๋‹ˆ๋‹ค.


122-126: ๋ฌดํ•œ ์Šคํฌ๋กค ์นด๋“œ ๋ Œ๋”๋ง ๋กœ์ง ์Šน์ธ

์—ฌ๋Ÿฌ ํŽ˜์ด์ง€์— ๊ฑธ์นœ ์นด๋“œ๋“ค์„ ํ‰๋ฉดํ™”ํ•˜์—ฌ ๋ Œ๋”๋งํ•˜๋Š” ๋กœ์ง์ด ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ๊ตฌํ˜„๋˜์—ˆ์Šต๋‹ˆ๋‹ค.


137-148: ๋ฌดํ•œ ์Šคํฌ๋กค UI ํ”ผ๋“œ๋ฐฑ ์Šน์ธ

๋กœ๋”ฉ ์ƒํƒœ์™€ ์™„๋ฃŒ ์ƒํƒœ์— ๋Œ€ํ•œ ์‚ฌ์šฉ์ž ํ”ผ๋“œ๋ฐฑ์ด ์ ์ ˆํžˆ ๊ตฌํ˜„๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

src/app/features/dashboard_Id/Card/Card.tsx (5)

9-10: ์นด๋“œ ์ˆ˜์ • ๋ชจ๋‹ฌ ์ปดํฌ๋„ŒํŠธ import ์Šน์ธ

์นด๋“œ ์ˆ˜์ • ๊ธฐ๋Šฅ์„ ์œ„ํ•œ ์ƒˆ๋กœ์šด ์ปดํฌ๋„ŒํŠธ๋“ค์˜ import๊ฐ€ ์ ์ ˆํ•ฉ๋‹ˆ๋‹ค.


25-27: ์นด๋“œ ์ˆ˜์ • ์ƒํƒœ ๋ฐ ์ปฌ๋Ÿผ ์ •๋ณด ์ถ”์ถœ ์Šน์ธ

์ˆ˜์ • ๋ชจ๋‹ฌ์„ ์œ„ํ•œ ์ƒํƒœ ์ถ”๊ฐ€์™€ ์ปฌ๋Ÿผ ์ •๋ณด ์ถ”์ถœ์ด ์ ์ ˆํ•ฉ๋‹ˆ๋‹ค.


39-90: ์นด๋“œ ๋ ˆ์ด์•„์›ƒ ๋ฐ˜์‘ํ˜• ๊ฐœ์„  ์Šน์ธ

์นด๋“œ ๋‚ด์šฉ์˜ ๋ฐ˜์‘ํ˜• ๋ ˆ์ด์•„์›ƒ ๊ฐœ์„ ์ด ๋งค์šฐ ์šฐ์ˆ˜ํ•ฉ๋‹ˆ๋‹ค:

  • ๋ชจ๋ฐ”์ผ์—์„œ ์„ธ๋กœ ๋ฐฐ์น˜, ํƒœ๋ธ”๋ฆฟ์—์„œ ๊ฐ€๋กœ ๋ฐฐ์น˜
  • ์ด๋ฏธ์ง€ ํฌ๊ธฐ ๋ฐ ์œ„์น˜ ์กฐ์ •
  • ์ œ๋ชฉ, ํƒœ๊ทธ, ๋งˆ๊ฐ์ผ, ๋‹ด๋‹น์ž ์˜์—ญ์˜ ๊ตฌ์กฐ์  ๊ฐœ์„ 
  • ๊ฐ ํ™”๋ฉด ํฌ๊ธฐ๋ณ„ ์ ์ ˆํ•œ ๊ฐ„๊ฒฉ ๋ฐ ์ •๋ ฌ

๋ชจ๋“  ๋ณ€๊ฒฝ์‚ฌํ•ญ์ด ๋‹ค์–‘ํ•œ ๋””๋ฐ”์ด์Šค์—์„œ์˜ ์‚ฌ์šฉ์ž ๊ฒฝํ—˜์„ ํฌ๊ฒŒ ํ–ฅ์ƒ์‹œํ‚ต๋‹ˆ๋‹ค.


96-96: ์นด๋“œ ์ˆ˜์ • ๋ชจ๋‹ฌ ์ฝœ๋ฐฑ ์ „๋‹ฌ ์Šน์ธ

CardContent์— openModifyModal ์ฝœ๋ฐฑ์„ ์ „๋‹ฌํ•˜๋Š” ๋ฐฉ์‹์ด ์ ์ ˆํ•ฉ๋‹ˆ๋‹ค.


103-112: ์นด๋“œ ์ˆ˜์ • ๋ชจ๋‹ฌ ๋ Œ๋”๋ง ์Šน์ธ

์นด๋“œ ์ˆ˜์ • ๋ชจ๋‹ฌ์˜ ์กฐ๊ฑด๋ถ€ ๋ Œ๋”๋ง๊ณผ ํ•„์š”ํ•œ props ์ „๋‹ฌ์ด ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ๊ตฌํ˜„๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

src/app/features/dashboard_Id/hooks/useInfiniteScroll.ts (3)

3-16: ๋ฌดํ•œ ์Šคํฌ๋กค ํ›… ์ธํ„ฐํŽ˜์ด์Šค ์„ค๊ณ„ ์Šน์ธ

ํ›…์˜ ๋งค๊ฐœ๋ณ€์ˆ˜ ์„ค๊ณ„๊ฐ€ ๋งค์šฐ ์šฐ์ˆ˜ํ•ฉ๋‹ˆ๋‹ค:

  • ๋ช…ํ™•ํ•œ ํƒ€์ž… ์ •์˜
  • ์„ ํƒ์  targetRef๋กœ ์œˆ๋„์šฐ/์—˜๋ฆฌ๋จผํŠธ ์Šคํฌ๋กค ๋ชจ๋‘ ์ง€์›
  • ์ƒ์„ธํ•œ JSDoc ๋ฌธ์„œํ™”

๋ฒ”์šฉ์ ์ด๊ณ  ์žฌ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ์„ค๊ณ„์ž…๋‹ˆ๋‹ค.


17-30: ์Šคํฌ๋กค ์ฒ˜๋ฆฌ ๋กœ์ง ์Šน์ธ

์Šคํฌ๋กค ์œ„์น˜ ๊ณ„์‚ฐ ๋ฐ ํŠธ๋ฆฌ๊ฑฐ ๋กœ์ง์ด ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ๊ตฌํ˜„๋˜์—ˆ์Šต๋‹ˆ๋‹ค:

  • ์œˆ๋„์šฐ์™€ ์—˜๋ฆฌ๋จผํŠธ ๋ชจ๋‘์— ๋Œ€ํ•œ ์ ์ ˆํ•œ ์†์„ฑ ์ ‘๊ทผ
  • 80% ์ง€์ ์—์„œ ํŠธ๋ฆฌ๊ฑฐํ•˜๋Š” ํ•ฉ๋ฆฌ์ ์ธ ์ž„๊ณ„๊ฐ’
  • ์ค‘๋ณต ์š”์ฒญ ๋ฐฉ์ง€๋ฅผ ์œ„ํ•œ ์ƒํƒœ ์ฒดํฌ
  • useCallback์„ ํ†ตํ•œ ์„ฑ๋Šฅ ์ตœ์ ํ™”

๋ชจ๋“  ๋กœ์ง์ด ์ •ํ™•ํ•˜๊ณ  ํšจ์œจ์ ์ž…๋‹ˆ๋‹ค.


32-39: ์ด๋ฒคํŠธ ๋ฆฌ์Šค๋„ˆ ๊ด€๋ฆฌ ์Šน์ธ

์ด๋ฒคํŠธ ๋ฆฌ์Šค๋„ˆ์˜ ๋“ฑ๋ก ๋ฐ ํ•ด์ œ๊ฐ€ ์ ์ ˆํžˆ ๊ตฌํ˜„๋˜์—ˆ์Šต๋‹ˆ๋‹ค:

  • passive: true ์˜ต์…˜์œผ๋กœ ์„ฑ๋Šฅ ์ตœ์ ํ™”
  • ์ปดํฌ๋„ŒํŠธ ์–ธ๋งˆ์šดํŠธ ์‹œ ์ ์ ˆํ•œ ์ •๋ฆฌ
  • ์˜์กด์„ฑ ๋ฐฐ์—ด์„ ํ†ตํ•œ ์ ์ ˆํ•œ ์žฌ๋“ฑ๋ก

๋ฉ”๋ชจ๋ฆฌ ๋ˆ„์ˆ˜ ๋ฐฉ์ง€์™€ ์„ฑ๋Šฅ ์ตœ์ ํ™”๊ฐ€ ์ž˜ ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค.

src/app/features/dashboard_Id/Card/cardFormModals/ModifyCardForm.tsx (12)

6-6: useRef import ์ถ”๊ฐ€ ์Šน์ธ

ํ–ฅํ›„ ref ์‚ฌ์šฉ์„ ์œ„ํ•œ import ์ถ”๊ฐ€๊ฐ€ ์ ์ ˆํ•ฉ๋‹ˆ๋‹ค.


39-39: ํƒœ๊ทธ ์ƒํƒœ ์ดˆ๊ธฐํ™” ์ˆ˜์ • ์Šน์ธ

card.tags๋กœ ์ง์ ‘ ์ดˆ๊ธฐํ™”ํ•˜๋Š” ๋ฐฉ์‹์ด ๋” ๋ช…ํ™•ํ•˜๊ณ  ์•ˆ์ „ํ•ฉ๋‹ˆ๋‹ค.


66-74: ํผ ๊ธฐ๋ณธ๊ฐ’ ๋ฐฉ์–ด์  ์ฒ˜๋ฆฌ ์Šน์ธ

nullable ๊ฐ’๋“ค์— ๋Œ€ํ•œ ๋ฐฉ์–ด์  ๊ธฐ๋ณธ๊ฐ’ ์„ค์ •์ด ์šฐ์ˆ˜ํ•ฉ๋‹ˆ๋‹ค:

  • assigneeUserId, dueDate, tags, imageUrl์— ๋Œ€ํ•œ ์•ˆ์ „ํ•œ ์ฒ˜๋ฆฌ
  • ๋นˆ ๋ฌธ์ž์—ด ๋ฐ ๋นˆ ๋ฐฐ์—ด fallback ์ œ๊ณต

๋Ÿฐํƒ€์ž„ ์—๋Ÿฌ๋ฅผ ๋ฐฉ์ง€ํ•˜๋Š” ๊ฒฌ๊ณ ํ•œ ์ฝ”๋“œ์ž…๋‹ˆ๋‹ค.


80-80: ํƒœ๊ทธ ๋ณ€๊ฒฝ ์‹œ dirty ํ”Œ๋ž˜๊ทธ ์„ค์ • ์Šน์ธ

shouldDirty: true ์˜ต์…˜์œผ๋กœ ํƒœ๊ทธ ๋ณ€๊ฒฝ ์‹œ ํผ์ด dirty ์ƒํƒœ๊ฐ€ ๋˜๋„๋ก ํ•˜๋Š” ์ฒ˜๋ฆฌ๊ฐ€ ์ ์ ˆํ•ฉ๋‹ˆ๋‹ค.


114-114: ์„ ํƒ๋œ ์ปฌ๋Ÿผ ID ์‚ฌ์šฉ ์Šน์ธ

์ œ์ถœ ์‹œ ํ˜„์žฌ ์„ ํƒ๋œ ์ปฌ๋Ÿผ์˜ ID๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๋กœ์ง์ด ์˜ฌ๋ฐ”๋ฆ…๋‹ˆ๋‹ค.


127-131: ์ด๋ฒคํŠธ ๋ฒ„๋ธ”๋ง ๋ฐฉ์ง€ ์Šน์ธ

ํผ์—์„œ stopPropagation ์ฒ˜๋ฆฌ๊ฐ€ ๋ชจ๋‹ฌ ๋ฐฐ๊ฒฝ ํด๋ฆญ๊ณผ์˜ ์ถฉ๋Œ์„ ๋ฐฉ์ง€ํ•ฉ๋‹ˆ๋‹ค.


134-134: ๋ชจ๋ฐ”์ผ ๋ฐ˜์‘ํ˜• ๋ ˆ์ด์•„์›ƒ ์Šน์ธ

๋ชจ๋ฐ”์ผ์—์„œ ์„ธ๋กœ ๋ฐฐ์น˜๋กœ ๋ณ€๊ฒฝ๋˜๋Š” ๋ฐ˜์‘ํ˜• ์Šคํƒ€์ผ์ด ์ ์ ˆํ•ฉ๋‹ˆ๋‹ค.


146-146: ์ž…๋ ฅ ํ•„๋“œ ์Šคํƒ€์ผ ํด๋ž˜์Šค ์ผ๊ด€์„ฑ ์Šน์ธ

Input-readOnly-217 ํด๋ž˜์Šค ์‚ฌ์šฉ์œผ๋กœ ์ผ๊ด€๋œ ์Šคํƒ€์ผ๋ง์ด ์ ์šฉ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

Also applies to: 188-188


152-152: ๋ชจ๋ฐ”์ผ ์œ„์น˜ ์กฐ์ • ์Šน์ธ

๋ชจ๋ฐ”์ผ์—์„œ ์—˜๋ฆฌ๋จผํŠธ๋“ค์˜ ์œ„์น˜ ์กฐ์ •์ด ์ ์ ˆํ•ฉ๋‹ˆ๋‹ค.

Also applies to: 161-161, 204-204


191-197: ๋‹ด๋‹น์ž ํ‘œ์‹œ ์กฐ๊ฑด๋ถ€ ๋ Œ๋”๋ง ์Šน์ธ

์„ ํƒ๋œ ๋‹ด๋‹น์ž๊ฐ€ ์žˆ์„ ๋•Œ๋งŒ MyAssignee ์ปดํฌ๋„ŒํŠธ๋ฅผ ํ‘œ์‹œํ•˜๋Š” ๋กœ์ง๊ณผ ๋‹คํฌ ๋ชจ๋“œ ๋ฐฐ๊ฒฝ ์ฒ˜๋ฆฌ๊ฐ€ ์ ์ ˆํ•ฉ๋‹ˆ๋‹ค.


306-356: ์ด๋ฏธ์ง€ ์—…๋กœ๋“œ UI ๋Œ€ํญ ๊ฐœ์„  ์Šน์ธ

์ด๋ฏธ์ง€ ์—…๋กœ๋“œ UI์˜ ๊ฐœ์„ ์‚ฌํ•ญ๋“ค์ด ๋งค์šฐ ์šฐ์ˆ˜ํ•ฉ๋‹ˆ๋‹ค:

  • ๋‹คํฌ ๋ชจ๋“œ ํ…Œ๋‘๋ฆฌ ์Šคํƒ€์ผ ์ถ”๊ฐ€
  • ์กฐ๊ฑด๋ถ€ ๋ Œ๋”๋ง ๊ฐœ์„  (๋ฏธ๋ฆฌ๋ณด๊ธฐ/์—…๋กœ๋“œ ์ค‘/ํ”Œ๋Ÿฌ์Šค ์•„์ด์ฝ˜)
  • ์‚ญ์ œ ๋ฒ„ํŠผ ์œ„์น˜ ๋ฐ ํ…์ŠคํŠธ ๊ฐœ์„ 
  • ์›๋ณธ ์ด๋ฏธ์ง€์ผ ๋•Œ ์ˆ˜์ • ๊ฐ€๋Šฅ ํ‘œ์‹œ ์˜ค๋ฒ„๋ ˆ์ด ์ถ”๊ฐ€

๋ชจ๋“  ๋ณ€๊ฒฝ์‚ฌํ•ญ์ด ์‚ฌ์šฉ์ž ๊ฒฝํ—˜์„ ํฌ๊ฒŒ ํ–ฅ์ƒ์‹œํ‚ต๋‹ˆ๋‹ค.


376-376: ์ œ์ถœ ๋ฒ„ํŠผ ๋‹คํฌ ๋ชจ๋“œ ์ง€์› ์Šน์ธ

disabled ์ƒํƒœ์— ๋Œ€ํ•œ ๋‹คํฌ ๋ชจ๋“œ ์Šคํƒ€์ผ๋ง์ด ์ผ๊ด€์„ฑ ์žˆ๊ฒŒ ์ ์šฉ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

Comment on lines +5 to +10
export async function deleteCard(cardId: number): Promise<ApiResponse> {
const res = await authHttpClient.delete(
`/${process.env.NEXT_PUBLIC_TEAM_ID}/cards/${cardId}`,
)
return res.data
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๐Ÿ› ๏ธ Refactor suggestion

ํ™˜๊ฒฝ ๋ณ€์ˆ˜ ์œ ํšจ์„ฑ ๊ฒ€์ฆ๊ณผ ์—๋Ÿฌ ์ฒ˜๋ฆฌ๋ฅผ ์ถ”๊ฐ€ํ•˜์„ธ์š”.

ํ˜„์žฌ ๊ตฌํ˜„์—์„œ process.env.NEXT_PUBLIC_TEAM_ID๊ฐ€ undefined์ผ ๊ฒฝ์šฐ์™€ HTTP ์š”์ฒญ ์‹คํŒจ ์‹œ์— ๋Œ€ํ•œ ์ฒ˜๋ฆฌ๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค.

๋‹ค์Œ๊ณผ ๊ฐ™์ด ๊ฐœ์„ ํ•ด๋ณด์„ธ์š”:

export async function deleteCard(cardId: number): Promise<ApiResponse> {
+  const teamId = process.env.NEXT_PUBLIC_TEAM_ID
+  if (!teamId) {
+    throw new Error('NEXT_PUBLIC_TEAM_ID๊ฐ€ ์„ค์ •๋˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค.')
+  }
+  
+  try {
    const res = await authHttpClient.delete(
-     `/${process.env.NEXT_PUBLIC_TEAM_ID}/cards/${cardId}`,
+     `/${teamId}/cards/${cardId}`,
    )
    return res.data
+  } catch (error) {
+    console.error('์นด๋“œ ์‚ญ์ œ ์ค‘ ์˜ค๋ฅ˜ ๋ฐœ์ƒ:', error)
+    throw error
+  }
}
๐Ÿ“ Committable suggestion

โ€ผ๏ธ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
export async function deleteCard(cardId: number): Promise<ApiResponse> {
const res = await authHttpClient.delete(
`/${process.env.NEXT_PUBLIC_TEAM_ID}/cards/${cardId}`,
)
return res.data
}
export async function deleteCard(cardId: number): Promise<ApiResponse> {
const teamId = process.env.NEXT_PUBLIC_TEAM_ID
if (!teamId) {
throw new Error('NEXT_PUBLIC_TEAM_ID๊ฐ€ ์„ค์ •๋˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค.')
}
try {
const res = await authHttpClient.delete(
`/${teamId}/cards/${cardId}`,
)
return res.data
} catch (error) {
console.error('์นด๋“œ ์‚ญ์ œ ์ค‘ ์˜ค๋ฅ˜ ๋ฐœ์ƒ:', error)
throw error
}
}
๐Ÿค– Prompt for AI Agents
In src/app/features/dashboard_Id/api/deleteCard.ts between lines 5 and 10, add
validation to check if process.env.NEXT_PUBLIC_TEAM_ID is defined before making
the HTTP delete request. If it is undefined, throw an appropriate error. Also,
wrap the HTTP request in a try-catch block to handle any request failures and
throw or return a meaningful error response accordingly.

Comment on lines +5 to +14
export async function putComment(
payload: PutCommentForm,
commentId: number,
): Promise<CommentResponse> {
const res = await authHttpClient.put(
`/${process.env.NEXT_PUBLIC_TEAM_ID}/comments/${commentId}`,
payload,
)
return res.data
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๐Ÿ› ๏ธ Refactor suggestion

ํ™˜๊ฒฝ ๋ณ€์ˆ˜ ๊ฒ€์ฆ๊ณผ ์—๋Ÿฌ ์ฒ˜๋ฆฌ๋ฅผ ์ถ”๊ฐ€ํ•˜์„ธ์š”.

deleteCard.ts์™€ ๋™์ผํ•œ ๋ฌธ์ œ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค. ํ™˜๊ฒฝ ๋ณ€์ˆ˜ ์œ ํšจ์„ฑ ๊ฒ€์ฆ๊ณผ HTTP ์š”์ฒญ ์‹คํŒจ ์‹œ ์—๋Ÿฌ ์ฒ˜๋ฆฌ๊ฐ€ ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.

๋‹ค์Œ๊ณผ ๊ฐ™์ด ๊ฐœ์„ ํ•ด๋ณด์„ธ์š”:

export async function putComment(
  payload: PutCommentForm,
  commentId: number,
): Promise<CommentResponse> {
+  const teamId = process.env.NEXT_PUBLIC_TEAM_ID
+  if (!teamId) {
+    throw new Error('NEXT_PUBLIC_TEAM_ID๊ฐ€ ์„ค์ •๋˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค.')
+  }
+  
+  try {
    const res = await authHttpClient.put(
-     `/${process.env.NEXT_PUBLIC_TEAM_ID}/comments/${commentId}`,
+     `/${teamId}/comments/${commentId}`,
      payload,
    )
    return res.data
+  } catch (error) {
+    console.error('๋Œ“๊ธ€ ์ˆ˜์ • ์ค‘ ์˜ค๋ฅ˜ ๋ฐœ์ƒ:', error)
+    throw error
+  }
}
๐Ÿ“ Committable suggestion

โ€ผ๏ธ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
export async function putComment(
payload: PutCommentForm,
commentId: number,
): Promise<CommentResponse> {
const res = await authHttpClient.put(
`/${process.env.NEXT_PUBLIC_TEAM_ID}/comments/${commentId}`,
payload,
)
return res.data
}
export async function putComment(
payload: PutCommentForm,
commentId: number,
): Promise<CommentResponse> {
const teamId = process.env.NEXT_PUBLIC_TEAM_ID
if (!teamId) {
throw new Error('NEXT_PUBLIC_TEAM_ID๊ฐ€ ์„ค์ •๋˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค.')
}
try {
const res = await authHttpClient.put(
`/${teamId}/comments/${commentId}`,
payload,
)
return res.data
} catch (error) {
console.error('๋Œ“๊ธ€ ์ˆ˜์ • ์ค‘ ์˜ค๋ฅ˜ ๋ฐœ์ƒ:', error)
throw error
}
}
๐Ÿค– Prompt for AI Agents
In src/app/features/dashboard_Id/api/putComment.ts lines 5 to 14, add validation
to check if the environment variable NEXT_PUBLIC_TEAM_ID is defined before using
it in the URL. Also, wrap the HTTP PUT request in a try-catch block to handle
possible errors during the request. If the environment variable is missing,
throw an explicit error. In the catch block, handle or rethrow the error
appropriately to ensure failures are managed gracefully.

Comment on lines +5 to +17
export function useDeleteCommentMutation() {
const queryClient = useQueryClient()

return useMutation({
mutationFn: (commentId: number) => deleteComment(commentId),
onSuccess: () => {
queryClient.invalidateQueries({ queryKey: ['comments'] }) // ๋Œ“๊ธ€ ๋ฆฌ์ŠคํŠธ ์บ์‹œ ๋ฌดํšจํ™”
},
onError: (error) => {
console.error('๋Œ“๊ธ€ ์‚ญ์ œ ์‹คํŒจ:', error)
},
})
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๐Ÿ› ๏ธ Refactor suggestion

์‚ฌ์šฉ์ž ํ”ผ๋“œ๋ฐฑ์„ ์œ„ํ•œ ํ† ์ŠคํŠธ ์•Œ๋ฆผ ์ถ”๊ฐ€ ํ•„์š”

๋‹ค๋ฅธ mutation ํ›…๋“ค(useDeleteCardMutation, usePutCardMutation)๊ณผ ์ผ๊ด€์„ฑ์„ ์œ„ํ•ด ์„ฑ๊ณต/์‹คํŒจ ์‹œ ํ† ์ŠคํŠธ ์•Œ๋ฆผ์„ ์ถ”๊ฐ€ํ•˜๋Š” ๊ฒƒ์„ ๊ถŒ์žฅํ•ฉ๋‹ˆ๋‹ค.

+import { toast } from 'sonner'
+
 import { deleteComment } from './deleteComment'

 export function useDeleteCommentMutation() {
   const queryClient = useQueryClient()

   return useMutation({
     mutationFn: (commentId: number) => deleteComment(commentId),
     onSuccess: () => {
+      toast.success('๋Œ“๊ธ€์ด ์‚ญ์ œ๋˜์—ˆ์Šต๋‹ˆ๋‹ค')
       queryClient.invalidateQueries({ queryKey: ['comments'] })
     },
     onError: (error) => {
+      toast.error('๋Œ“๊ธ€ ์‚ญ์ œ์— ์‹คํŒจํ–ˆ์Šต๋‹ˆ๋‹ค')
       console.error('๋Œ“๊ธ€ ์‚ญ์ œ ์‹คํŒจ:', error)
     },
   })
 }
๐Ÿ“ Committable suggestion

โ€ผ๏ธ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
export function useDeleteCommentMutation() {
const queryClient = useQueryClient()
return useMutation({
mutationFn: (commentId: number) => deleteComment(commentId),
onSuccess: () => {
queryClient.invalidateQueries({ queryKey: ['comments'] }) // ๋Œ“๊ธ€ ๋ฆฌ์ŠคํŠธ ์บ์‹œ ๋ฌดํšจํ™”
},
onError: (error) => {
console.error('๋Œ“๊ธ€ ์‚ญ์ œ ์‹คํŒจ:', error)
},
})
}
import { toast } from 'sonner'
import { deleteComment } from './deleteComment'
export function useDeleteCommentMutation() {
const queryClient = useQueryClient()
return useMutation({
mutationFn: (commentId: number) => deleteComment(commentId),
onSuccess: () => {
toast.success('๋Œ“๊ธ€์ด ์‚ญ์ œ๋˜์—ˆ์Šต๋‹ˆ๋‹ค')
queryClient.invalidateQueries({ queryKey: ['comments'] }) // ๋Œ“๊ธ€ ๋ฆฌ์ŠคํŠธ ์บ์‹œ ๋ฌดํšจํ™”
},
onError: (error) => {
toast.error('๋Œ“๊ธ€ ์‚ญ์ œ์— ์‹คํŒจํ–ˆ์Šต๋‹ˆ๋‹ค')
console.error('๋Œ“๊ธ€ ์‚ญ์ œ ์‹คํŒจ:', error)
},
})
}
๐Ÿค– Prompt for AI Agents
In src/app/features/dashboard_Id/api/useDeleteCommentMutation.ts between lines 5
and 17, add toast notifications for both success and error cases in the
useMutation hook to match the behavior of other mutation hooks like
useDeleteCardMutation and usePutCardMutation. Use a toast library or component
to show a success message when the comment deletion succeeds and an error
message when it fails, ensuring consistent user feedback across mutations.

Comment on lines +6 to +24
// โœ… ๋Œ“๊ธ€ ์ƒ์„ฑ ์ปดํฌ๋„ŒํŠธ์—์„œ ์‚ฌ์šฉ (CommentForm.tsx)
export function usePostCommentMutation() {
const queryClient = useQueryClient()

return useMutation({
mutationFn: postComment,
onSuccess: () => {
queryClient.invalidateQueries({ queryKey: ['comments'] }) // ๋Œ“๊ธ€ ๋ชฉ๋ก ์บ์‹œ๊ฐ€ stale ์ƒํƒœ์ž„์„ ์•Œ๋ฆฌ๊ณ  ๋‹ค์‹œ fetch ํ•˜๋„๋ก ์œ ๋„ํ•จ
},
onError: (error) => {
if (axios.isAxiosError(error)) {
const message = error.response?.data?.message
console.error('๋Œ“๊ธ€ ์ƒ์„ฑ ์‹คํŒจ:', message ?? '์•Œ ์ˆ˜ ์—†๋Š” ์—๋Ÿฌ')
} else {
console.error('๋Œ“๊ธ€ ์ƒ์„ฑ ์‹คํŒจ:', error)
}
},
})
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๐Ÿ› ๏ธ Refactor suggestion

์‚ฌ์šฉ์ž ํ”ผ๋“œ๋ฐฑ ๋ฐ ์ผ๊ด€์„ฑ ๊ฐœ์„  ํ•„์š”

  1. ๋‹ค๋ฅธ mutation ํ›…๋“ค๊ณผ์˜ ์ผ๊ด€์„ฑ์„ ์œ„ํ•ด ํ† ์ŠคํŠธ ์•Œ๋ฆผ์„ ์ถ”๊ฐ€ํ•ด์ฃผ์„ธ์š”.
  2. mutationFn์—์„œ ๋งค๊ฐœ๋ณ€์ˆ˜๋ฅผ ๋ช…์‹œ์ ์œผ๋กœ ๋ฐ›๋„๋ก ๊ฐœ์„ ์„ ๊ถŒ์žฅํ•ฉ๋‹ˆ๋‹ค.
 import { useMutation, useQueryClient } from '@tanstack/react-query'
 import axios from 'axios'
+import { toast } from 'sonner'

 import { postComment } from './postComment'

 // โœ… ๋Œ“๊ธ€ ์ƒ์„ฑ ์ปดํฌ๋„ŒํŠธ์—์„œ ์‚ฌ์šฉ (CommentForm.tsx)
 export function usePostCommentMutation() {
   const queryClient = useQueryClient()

   return useMutation({
-    mutationFn: postComment,
+    mutationFn: (payload) => postComment(payload),
     onSuccess: () => {
+      toast.success('๋Œ“๊ธ€์ด ์ž‘์„ฑ๋˜์—ˆ์Šต๋‹ˆ๋‹ค')
       queryClient.invalidateQueries({ queryKey: ['comments'] })
     },
     onError: (error) => {
+      toast.error('๋Œ“๊ธ€ ์ž‘์„ฑ์— ์‹คํŒจํ–ˆ์Šต๋‹ˆ๋‹ค')
       if (axios.isAxiosError(error)) {
         const message = error.response?.data?.message
         console.error('๋Œ“๊ธ€ ์ƒ์„ฑ ์‹คํŒจ:', message ?? '์•Œ ์ˆ˜ ์—†๋Š” ์—๋Ÿฌ')
       } else {
         console.error('๋Œ“๊ธ€ ์ƒ์„ฑ ์‹คํŒจ:', error)
       }
     },
   })
 }
๐Ÿ“ Committable suggestion

โ€ผ๏ธ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
// โœ… ๋Œ“๊ธ€ ์ƒ์„ฑ ์ปดํฌ๋„ŒํŠธ์—์„œ ์‚ฌ์šฉ (CommentForm.tsx)
export function usePostCommentMutation() {
const queryClient = useQueryClient()
return useMutation({
mutationFn: postComment,
onSuccess: () => {
queryClient.invalidateQueries({ queryKey: ['comments'] }) // ๋Œ“๊ธ€ ๋ชฉ๋ก ์บ์‹œ๊ฐ€ stale ์ƒํƒœ์ž„์„ ์•Œ๋ฆฌ๊ณ  ๋‹ค์‹œ fetch ํ•˜๋„๋ก ์œ ๋„ํ•จ
},
onError: (error) => {
if (axios.isAxiosError(error)) {
const message = error.response?.data?.message
console.error('๋Œ“๊ธ€ ์ƒ์„ฑ ์‹คํŒจ:', message ?? '์•Œ ์ˆ˜ ์—†๋Š” ์—๋Ÿฌ')
} else {
console.error('๋Œ“๊ธ€ ์ƒ์„ฑ ์‹คํŒจ:', error)
}
},
})
}
import { useMutation, useQueryClient } from '@tanstack/react-query'
import axios from 'axios'
import { toast } from 'sonner'
import { postComment } from './postComment'
// โœ… ๋Œ“๊ธ€ ์ƒ์„ฑ ์ปดํฌ๋„ŒํŠธ์—์„œ ์‚ฌ์šฉ (CommentForm.tsx)
export function usePostCommentMutation() {
const queryClient = useQueryClient()
return useMutation({
mutationFn: (payload) => postComment(payload),
onSuccess: () => {
toast.success('๋Œ“๊ธ€์ด ์ž‘์„ฑ๋˜์—ˆ์Šต๋‹ˆ๋‹ค')
queryClient.invalidateQueries({ queryKey: ['comments'] }) // ๋Œ“๊ธ€ ๋ชฉ๋ก ์บ์‹œ๊ฐ€ stale ์ƒํƒœ์ž„์„ ์•Œ๋ฆฌ๊ณ  ๋‹ค์‹œ fetch ํ•˜๋„๋ก ์œ ๋„ํ•จ
},
onError: (error) => {
toast.error('๋Œ“๊ธ€ ์ž‘์„ฑ์— ์‹คํŒจํ–ˆ์Šต๋‹ˆ๋‹ค')
if (axios.isAxiosError(error)) {
const message = error.response?.data?.message
console.error('๋Œ“๊ธ€ ์ƒ์„ฑ ์‹คํŒจ:', message ?? '์•Œ ์ˆ˜ ์—†๋Š” ์—๋Ÿฌ')
} else {
console.error('๋Œ“๊ธ€ ์ƒ์„ฑ ์‹คํŒจ:', error)
}
},
})
}
๐Ÿค– Prompt for AI Agents
In src/app/features/dashboard_Id/api/usePostCommentMutation.ts between lines 6
and 24, the mutation hook lacks toast notifications for user feedback and does
not explicitly declare parameters in the mutation function. To fix this, add
toast notifications in both onSuccess and onError handlers to inform users of
the mutation result, and modify mutationFn to explicitly accept and use
parameters for posting comments, ensuring consistency with other mutation hooks.

return useMutation<CommentResponse, Error, PutCommentArgs>({
mutationFn: ({ payload, commentId }) => putComment(payload, commentId),
onSuccess: () => {
queryClient.invalidateQueries({ queryKey: ['comments'] }) //'columnId' ์ฟผ๋ฆฌ invalidate - ์นด๋“œ๊ฐ€ stale ์ƒํƒœ์ž„์„ ์•Œ๋ฆฌ๊ณ  ๋‹ค์‹œ fetch ํ•˜๋„๋ก ์œ ๋„ํ•จ
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๐Ÿ› ๏ธ Refactor suggestion

Cache invalidation์„ ๋” ๊ตฌ์ฒด์ ์œผ๋กœ ์ง€์ •ํ•˜์„ธ์š”.

ํ˜„์žฌ ๋ชจ๋“  ๋Œ“๊ธ€ ์ฟผ๋ฆฌ๋ฅผ ๋ฌดํšจํ™”ํ•˜๊ณ  ์žˆ์–ด ๋ถˆํ•„์š”ํ•œ ๋„คํŠธ์›Œํฌ ์š”์ฒญ์ด ๋ฐœ์ƒํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ํŠน์ • ์นด๋“œ์˜ ๋Œ“๊ธ€๋งŒ ๋ฌดํšจํ™”ํ•˜๋Š” ๊ฒƒ์ด ๋” ํšจ์œจ์ ์ž…๋‹ˆ๋‹ค.

-queryClient.invalidateQueries({ queryKey: ['comments'] })
+queryClient.invalidateQueries({ queryKey: ['comments', payload.cardId] })

ํ•˜์ง€๋งŒ ํ˜„์žฌ ๊ตฌ์กฐ์ƒ payload์— cardId๊ฐ€ ์—†์œผ๋ฏ€๋กœ, PutCommentArgs ์ธํ„ฐํŽ˜์ด์Šค์— cardId๋ฅผ ์ถ”๊ฐ€ํ•˜๊ฑฐ๋‚˜ ๋‹ค๋ฅธ ๋ฐฉ๋ฒ•์„ ๊ณ ๋ คํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

Committable suggestion skipped: line range outside the PR's diff.

๐Ÿค– Prompt for AI Agents
In src/app/features/dashboard_Id/api/usePutCommentsMutation.ts at line 19, the
cache invalidation currently targets all 'comments' queries, causing unnecessary
network requests. To fix this, modify the cache invalidation to target only the
comments related to the specific card by including 'cardId' in the query key.
Since 'cardId' is not present in the current payload, update the PutCommentArgs
interface to include 'cardId' or find another way to pass 'cardId' to this
function, then use it in queryClient.invalidateQueries to invalidate only the
relevant card's comments.

Comment on lines +36 to +65
return (
<form
onSubmit={handleSubmit(onSubmit)}
className="relative flex gap-10 mobile:flex-col"
>
<textarea
{...register('content', {
required: '๋Œ“๊ธ€ ๋‚ด์šฉ์„ ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”',
})}
className="Text-black h-110 w-450 resize-none rounded-6 border border-[#D9D9D9] p-16 text-14 placeholder-gray-400 dark:border-[#747474] mobile:w-250 tablet:w-420"
id="content"
placeholder={content ? content : '๋Œ“๊ธ€ ์ž‘์„ฑํ•˜๊ธฐ'}
/>
<div className="flex flex-col mobile:flex-row">
<button
type="button"
className="Text-gray-light h-28 w-50 rounded-4 border border-[#D9D9D9] py-5 text-center text-12 font-medium dark:border-[#747474]"
onClick={onClose}
>
์ทจ์†Œ
</button>
<button
type="submit"
className="Text-blue h-28 w-50 rounded-4 border border-[#D9D9D9] py-5 text-center text-12 font-medium dark:border-[#747474]"
>
์ˆ˜์ •
</button>
</div>
</form>
)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๐Ÿ› ๏ธ Refactor suggestion

์—๋Ÿฌ ์ƒํƒœ ํ‘œ์‹œ๋ฅผ ์ถ”๊ฐ€ํ•˜์„ธ์š”.

ํผ ๊ฒ€์ฆ ์—๋Ÿฌ๋‚˜ API ์—๋Ÿฌ๋ฅผ ์‚ฌ์šฉ์ž์—๊ฒŒ ํ‘œ์‹œํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

์—๋Ÿฌ ํ‘œ์‹œ๋ฅผ ์œ„ํ•œ ์š”์†Œ๋ฅผ ์ถ”๊ฐ€ํ•˜์„ธ์š”:

      />
+     {errors.content && (
+       <p className="mt-2 text-12 text-red-500">{errors.content.message}</p>
+     )}
      <div className="flex flex-col mobile:flex-row">
๐Ÿ“ Committable suggestion

โ€ผ๏ธ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
return (
<form
onSubmit={handleSubmit(onSubmit)}
className="relative flex gap-10 mobile:flex-col"
>
<textarea
{...register('content', {
required: '๋Œ“๊ธ€ ๋‚ด์šฉ์„ ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”',
})}
className="Text-black h-110 w-450 resize-none rounded-6 border border-[#D9D9D9] p-16 text-14 placeholder-gray-400 dark:border-[#747474] mobile:w-250 tablet:w-420"
id="content"
placeholder={content ? content : '๋Œ“๊ธ€ ์ž‘์„ฑํ•˜๊ธฐ'}
/>
<div className="flex flex-col mobile:flex-row">
<button
type="button"
className="Text-gray-light h-28 w-50 rounded-4 border border-[#D9D9D9] py-5 text-center text-12 font-medium dark:border-[#747474]"
onClick={onClose}
>
์ทจ์†Œ
</button>
<button
type="submit"
className="Text-blue h-28 w-50 rounded-4 border border-[#D9D9D9] py-5 text-center text-12 font-medium dark:border-[#747474]"
>
์ˆ˜์ •
</button>
</div>
</form>
)
return (
<form
onSubmit={handleSubmit(onSubmit)}
className="relative flex gap-10 mobile:flex-col"
>
<textarea
{...register('content', {
required: '๋Œ“๊ธ€ ๋‚ด์šฉ์„ ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”',
})}
className="Text-black h-110 w-450 resize-none rounded-6 border border-[#D9D9D9] p-16 text-14 placeholder-gray-400 dark:border-[#747474] mobile:w-250 tablet:w-420"
id="content"
placeholder={content ? content : '๋Œ“๊ธ€ ์ž‘์„ฑํ•˜๊ธฐ'}
/>
{errors.content && (
<p className="mt-2 text-12 text-red-500">{errors.content.message}</p>
)}
<div className="flex flex-col mobile:flex-row">
<button
type="button"
className="Text-gray-light h-28 w-50 rounded-4 border border-[#D9D9D9] py-5 text-center text-12 font-medium dark:border-[#747474]"
onClick={onClose}
>
์ทจ์†Œ
</button>
<button
type="submit"
className="Text-blue h-28 w-50 rounded-4 border border-[#D9D9D9] py-5 text-center text-12 font-medium dark:border-[#747474]"
>
์ˆ˜์ •
</button>
</div>
</form>
)
๐Ÿค– Prompt for AI Agents
In src/app/features/dashboard_Id/Card/cardModal/CommentModifyForm.tsx between
lines 36 and 65, the form currently lacks any visible error messages for
validation or API errors. Add UI elements below the textarea to display
validation errors from the form state and any API errors. Use the error messages
from the form's error object for validation errors and a state variable for API
errors, ensuring users receive clear feedback when submission fails or input is
invalid.

Comment on lines +60 to +65
<button
type="submit"
className="Text-blue absolute bottom-19 right-12 h-32 w-83 rounded-4 border border-[#D9D9D9] py-7 text-center text-12 font-medium dark:border-[#747474]"
>
์ž…๋ ฅ
</button>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๐Ÿ› ๏ธ Refactor suggestion

์ œ์ถœ ๋ฒ„ํŠผ์˜ ์ƒํƒœ ๊ด€๋ฆฌ๋ฅผ ๊ฐœ์„ ํ•˜์„ธ์š”.

ํผ ๊ฒ€์ฆ ์ƒํƒœ์™€ ์ œ์ถœ ์ค‘ ์ƒํƒœ์— ๋”ฐ๋ผ ๋ฒ„ํŠผ์„ ๋น„ํ™œ์„ฑํ™”ํ•˜๊ณ  ๋กœ๋”ฉ ์ƒํƒœ๋ฅผ ํ‘œ์‹œํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

        <button
          type="submit"
+         disabled={!isValid || isSubmitting || isPending}
          className="Text-blue absolute bottom-19 right-12 h-32 w-83 rounded-4 border border-[#D9D9D9] py-7 text-center text-12 font-medium dark:border-[#747474]"
        >
-         ์ž…๋ ฅ
+         {isSubmitting || isPending ? '์ž…๋ ฅ ์ค‘...' : '์ž…๋ ฅ'}
        </button>
๐Ÿ“ Committable suggestion

โ€ผ๏ธ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<button
type="submit"
className="Text-blue absolute bottom-19 right-12 h-32 w-83 rounded-4 border border-[#D9D9D9] py-7 text-center text-12 font-medium dark:border-[#747474]"
>
์ž…๋ ฅ
</button>
<button
type="submit"
disabled={!isValid || isSubmitting || isPending}
className="Text-blue absolute bottom-19 right-12 h-32 w-83 rounded-4 border border-[#D9D9D9] py-7 text-center text-12 font-medium dark:border-[#747474]"
>
{isSubmitting || isPending ? '์ž…๋ ฅ ์ค‘...' : '์ž…๋ ฅ'}
</button>
๐Ÿค– Prompt for AI Agents
In src/app/features/dashboard_Id/Card/cardModal/CommentForm.tsx around lines 60
to 65, the submit button lacks state management for form validation and loading.
Update the button to be disabled when the form is invalid or submission is in
progress, and add a visual loading indicator (e.g., spinner or text change)
during submission to improve user feedback.

Comment on lines +51 to +58
<textarea
{...register('content', {
required: '๋Œ“๊ธ€ ๋‚ด์šฉ์„ ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”',
})}
className="Text-black h-110 w-full resize-none rounded-6 border border-[#D9D9D9] p-16 text-14 placeholder-gray-400 dark:border-[#747474]"
id="content"
placeholder="๋Œ“๊ธ€ ์ž‘์„ฑํ•˜๊ธฐ"
/>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๐Ÿ› ๏ธ Refactor suggestion

ํผ ๊ฒ€์ฆ ์—๋Ÿฌ ํ‘œ์‹œ๋ฅผ ์ถ”๊ฐ€ํ•˜์„ธ์š”.

์‚ฌ์šฉ์ž๊ฐ€ ํผ ๊ฒ€์ฆ ์—๋Ÿฌ๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์žˆ๋„๋ก ์—๋Ÿฌ ๋ฉ”์‹œ์ง€๋ฅผ ํ‘œ์‹œํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

        />
+       {errors.content && (
+         <p className="mt-2 text-12 text-red-500">{errors.content.message}</p>
+       )}

        <button
๐Ÿ“ Committable suggestion

โ€ผ๏ธ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<textarea
{...register('content', {
required: '๋Œ“๊ธ€ ๋‚ด์šฉ์„ ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”',
})}
className="Text-black h-110 w-full resize-none rounded-6 border border-[#D9D9D9] p-16 text-14 placeholder-gray-400 dark:border-[#747474]"
id="content"
placeholder="๋Œ“๊ธ€ ์ž‘์„ฑํ•˜๊ธฐ"
/>
<textarea
{...register('content', {
required: '๋Œ“๊ธ€ ๋‚ด์šฉ์„ ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”',
})}
className="Text-black h-110 w-full resize-none rounded-6 border border-[#D9D9D9] p-16 text-14 placeholder-gray-400 dark:border-[#747474]"
id="content"
placeholder="๋Œ“๊ธ€ ์ž‘์„ฑํ•˜๊ธฐ"
/>
{errors.content && (
<p className="mt-2 text-12 text-red-500">{errors.content.message}</p>
)}
<button
๐Ÿค– Prompt for AI Agents
In src/app/features/dashboard_Id/Card/cardModal/CommentForm.tsx around lines 51
to 58, the textarea input has validation rules but does not display validation
error messages to the user. Add a conditional rendering block below the textarea
to show the error message from the form state (e.g., errors.content.message) so
users can see why their input is invalid.

Comment on lines +83 to +87
onClick={(e) => {
e.stopPropagation()
deleteCard(card.id)
}}
>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

โš ๏ธ Potential issue

์นด๋“œ ์‚ญ์ œ ์ „ ํ™•์ธ ๋Œ€ํ™”์ƒ์ž๋ฅผ ์ถ”๊ฐ€ํ•˜์„ธ์š”.

ํ˜„์žฌ ์‚ญ์ œ ๋ฒ„ํŠผ ํด๋ฆญ ์‹œ ์ฆ‰์‹œ ์นด๋“œ๊ฐ€ ์‚ญ์ œ๋ฉ๋‹ˆ๋‹ค. ์‹ค์ˆ˜๋กœ ์‚ญ์ œํ•˜๋Š” ๊ฒƒ์„ ๋ฐฉ์ง€ํ•˜๊ธฐ ์œ„ํ•ด ํ™•์ธ ๋Œ€ํ™”์ƒ์ž๊ฐ€ ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.

           <button
             className="Text-black w-full whitespace-nowrap rounded-6 px-22 py-11 text-center text-14 font-medium hover:bg-[#dbf0ff] hover:text-[#228DFF] dark:hover:bg-[#02406d]"
             onClick={(e) => {
               e.stopPropagation()
-              deleteCard(card.id)
+              if (window.confirm('์ •๋ง๋กœ ์ด ์นด๋“œ๋ฅผ ์‚ญ์ œํ•˜์‹œ๊ฒ ์Šต๋‹ˆ๊นŒ?')) {
+                deleteCard(card.id)
+              }
             }}
           >
๐Ÿ“ Committable suggestion

โ€ผ๏ธ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
onClick={(e) => {
e.stopPropagation()
deleteCard(card.id)
}}
>
<button
className="Text-black w-full whitespace-nowrap rounded-6 px-22 py-11 text-center text-14 font-medium hover:bg-[#dbf0ff] hover:text-[#228DFF] dark:hover:bg-[#02406d]"
onClick={(e) => {
e.stopPropagation()
if (window.confirm('์ •๋ง๋กœ ์ด ์นด๋“œ๋ฅผ ์‚ญ์ œํ•˜์‹œ๊ฒ ์Šต๋‹ˆ๊นŒ?')) {
deleteCard(card.id)
}
}}
>
๐Ÿค– Prompt for AI Agents
In src/app/features/dashboard_Id/Card/cardModal/CardContent.tsx around lines 83
to 87, the deleteCard function is called immediately on button click without
user confirmation. To prevent accidental deletions, wrap the deleteCard call
inside a confirmation dialog by using window.confirm or a similar modal. Only
call deleteCard(card.id) if the user confirms the action.

<div>
<div className="Border-section flex w-200 flex-col gap-16 rounded-8 px-16 py-14 mobile:w-full mobile:flex-row mobile:py-9 tablet:w-181">
<div className="mobile:w-120">
<span className="Text-black moblie:mb-0 mb-6 block text-12 font-semibold">
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

โš ๏ธ Potential issue

CSS ํด๋ž˜์Šค๋ช… ์˜คํƒ€๋ฅผ ์ˆ˜์ •ํ•˜์„ธ์š”.

moblie:mb-0์€ mobile:mb-0์ด์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

-                <span className="Text-black moblie:mb-0 mb-6 block text-12 font-semibold">
+                <span className="Text-black mobile:mb-0 mb-6 block text-12 font-semibold">
๐Ÿ“ Committable suggestion

โ€ผ๏ธ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<span className="Text-black moblie:mb-0 mb-6 block text-12 font-semibold">
<span className="Text-black mobile:mb-0 mb-6 block text-12 font-semibold">
๐Ÿค– Prompt for AI Agents
In src/app/features/dashboard_Id/Card/cardModal/CardContent.tsx at line 152,
there is a typo in the CSS class name "moblie:mb-0". Correct this typo by
changing "moblie:mb-0" to "mobile:mb-0" to ensure the intended mobile
margin-bottom style is applied properly.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

๐Ÿงน Nitpick comments (2)
src/app/features/dashboard_Id/api/useCardMutation.original.ts (2)

40-48: ๊ฐ€๋“œ ์กฐ๊ฑด ๋กœ์ง์„ ๊ฐœ์„ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

ํ˜„์žฌ ๊ฐ€๋“œ ์กฐ๊ฑด์ด ์—ฌ๋Ÿฌ ์ผ€์ด์Šค๋ฅผ ์ฒ˜๋ฆฌํ•˜๊ณ  ์žˆ์ง€๋งŒ, ๊ฐ๊ฐ์˜ ์กฐ๊ฑด์— ๋Œ€ํ•œ ๋” ๋ช…ํ™•ํ•œ ๋กœ๊น…์ด๋‚˜ ์—๋Ÿฌ ์ฒ˜๋ฆฌ๊ฐ€ ๋„์›€์ด ๋  ๊ฒƒ์ž…๋‹ˆ๋‹ค.

๋‹ค์Œ๊ณผ ๊ฐ™์ด ๊ฐœ์„ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค:

      // Guard return
      if (!currentCard) {
+        console.log('๋“œ๋ž˜๊ทธ ์ค‘์ธ ์นด๋“œ๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค')
        clearDraggingCard()
        return
      }
      
+      if (currentCard.cardData.id !== cardData.id) {
+        console.log('๋“œ๋ž˜๊ทธ ์ค‘์ธ ์นด๋“œ์™€ mutation ๋Œ€์ƒ ์นด๋“œ๊ฐ€ ๋‹ค๋ฆ…๋‹ˆ๋‹ค')
+        clearDraggingCard()
+        return
+      }
+      
+      if (currentCard.cardData.columnId === columnId) {
+        console.log('๊ฐ™์€ ์ปฌ๋Ÿผ์œผ๋กœ ์ด๋™ํ•˜๋ ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค')
+        clearDraggingCard()
+        return
+      }
-      if (
-        !currentCard ||
-        currentCard.cardData.id !== cardData.id ||
-        currentCard.cardData.columnId === columnId
-      ) {
-        console.log('no dragging card || is not a dragging card || same column')
-        clearDraggingCard()
-        return
-      }

45-45: ํ”„๋กœ๋•์…˜ ํ™˜๊ฒฝ์—์„œ ์ฝ˜์†” ๋กœ๊ทธ๋ฅผ ์ œ๊ฑฐํ•˜๋Š” ๊ฒƒ์„ ๊ณ ๋ คํ•ด๋ณด์„ธ์š”.

๋””๋ฒ„๊น…์šฉ ์ฝ˜์†” ๋กœ๊ทธ๋“ค์ด ์—ฌ๋Ÿฌ ๊ณณ์— ์žˆ์Šต๋‹ˆ๋‹ค. ํ”„๋กœ๋•์…˜ ๋นŒ๋“œ์—์„œ๋Š” ์ด๋“ค์„ ์ œ๊ฑฐํ•˜๊ฑฐ๋‚˜ ์ ์ ˆํ•œ ๋กœ๊น… ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์ด ์ข‹์Šต๋‹ˆ๋‹ค.

Also applies to: 56-56, 71-71

๐Ÿ“œ Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

๐Ÿ“ฅ Commits

Reviewing files that changed from the base of the PR and between 6f4d5f5 and 5ea58c8.

๐Ÿ“’ Files selected for processing (3)
  • src/app/dashboard/[id]/page.tsx (2 hunks)
  • src/app/features/dashboard_Id/api/useCardMutation.original.ts (1 hunks)
  • src/app/features/dashboard_Id/api/useCardMutation.ts (2 hunks)
๐Ÿšง Files skipped from review as they are similar to previous changes (2)
  • src/app/dashboard/[id]/page.tsx
  • src/app/features/dashboard_Id/api/useCardMutation.ts
โฐ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: eslint-check
๐Ÿ”‡ Additional comments (6)
src/app/features/dashboard_Id/api/useCardMutation.original.ts (6)

1-5: ์ž„ํฌํŠธ ๊ตฌ์กฐ๊ฐ€ ๋ช…ํ™•ํ•˜๊ณ  ์ ์ ˆํ•ฉ๋‹ˆ๋‹ค.

ํ•„์š”ํ•œ ์˜์กด์„ฑ๋“ค์ด ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์ž„ํฌํŠธ๋˜์–ด ์žˆ๊ณ , ํƒ€์ž…๊ณผ ํ•จ์ˆ˜๋“ค์ด ์ ์ ˆํžˆ ๊ตฌ์กฐํ™”๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค.


7-10: ํ›… ์ดˆ๊ธฐํ™”๊ฐ€ ์ ์ ˆํ•ฉ๋‹ˆ๋‹ค.

QueryClient์™€ ๋“œ๋ž˜๊ทธ ์Šคํ† ์–ด๋ฅผ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์ดˆ๊ธฐํ™”ํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.


11-21: mutation ํ•จ์ˆ˜ ์ •์˜๊ฐ€ ๋ช…ํ™•ํ•ฉ๋‹ˆ๋‹ค.

ํƒ€์ž… ์•ˆ์ „์„ฑ์„ ๋ณด์žฅํ•˜๋ฉด์„œ ํ•„์š”ํ•œ ๋งค๊ฐœ๋ณ€์ˆ˜๋“ค์„ ์ ์ ˆํžˆ ์ •์˜ํ–ˆ์Šต๋‹ˆ๋‹ค.


84-93: ์—๋Ÿฌ ์ฒ˜๋ฆฌ ๋กœ์ง์ด ์ ์ ˆํ•ฉ๋‹ˆ๋‹ค.

์ด์ „ ๋ฐ์ดํ„ฐ๋กœ์˜ ๋กค๋ฐฑ ์ฒ˜๋ฆฌ๊ฐ€ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ๊ตฌํ˜„๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค.


95-101: ์„ฑ๊ณต ์‹œ ์ฟผ๋ฆฌ ๋ฌดํšจํ™”๊ฐ€ ์ ์ ˆํ•ฉ๋‹ˆ๋‹ค.

์„œ๋ฒ„ ๋ฐ์ดํ„ฐ์™€์˜ ๋™๊ธฐํ™”๋ฅผ ์œ„ํ•œ ์ฟผ๋ฆฌ ๋ฌดํšจํ™”๊ฐ€ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ๊ตฌํ˜„๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค.


52-77: ๋ฌดํ•œ ์Šคํฌ๋กค ๊ตฌํ˜„๊ณผ์˜ ํ˜ธํ™˜์„ฑ์„ ํ™•์ธํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

PR ๋ชฉํ‘œ์—์„œ ์–ธ๊ธ‰๋œ ๋Œ€๋กœ, ๋ฌดํ•œ ์Šคํฌ๋กค ๊ตฌํ˜„์œผ๋กœ ์ธํ•ด ์ด mutation ํ•จ์ˆ˜์˜ ์ˆ˜์ •์ด ํ•„์š”ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ํ˜„์žฌ ์ฝ”๋“œ๋Š” CardResponse ํƒ€์ž…์„ ์ง์ ‘ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ์ง€๋งŒ, ๋ฌดํ•œ ์Šคํฌ๋กค์—์„œ๋Š” InfiniteData<CardResponse> ๊ตฌ์กฐ๊ฐ€ ํ•„์š”ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

๋‹ค์Œ ์Šคํฌ๋ฆฝํŠธ๋กœ ๋ฌดํ•œ ์Šคํฌ๋กค ๊ด€๋ จ ๊ตฌํ˜„์ฒด์™€์˜ ํ˜ธํ™˜์„ฑ์„ ํ™•์ธํ•ด๋ณด์„ธ์š”:

#!/bin/bash
# ๋ฌดํ•œ ์Šคํฌ๋กค ๊ด€๋ จ ํŒŒ์ผ๋“ค๊ณผ InfiniteData ์‚ฌ์šฉ ํ˜„ํ™ฉ ํ™•์ธ
echo "=== ๋ฌดํ•œ ์Šคํฌ๋กค ๊ด€๋ จ ํŒŒ์ผ ๊ฒ€์ƒ‰ ==="
fd -e ts -e tsx | xargs rg -l "InfiniteData|useInfiniteQuery"

echo "=== useCardMutation ์‚ฌ์šฉ ํ˜„ํ™ฉ ==="
rg -A 5 -B 5 "useCardMutation"

echo "=== CardResponse ํƒ€์ž… ์‚ฌ์šฉ ํ˜„ํ™ฉ ==="
rg -A 3 -B 3 "CardResponse"

@dkslel1225 dkslel1225 changed the title develop <-- Feature/dashboard / *๊ณ ์น  ๊ฑฐ ์•„์ง ๋‚จ์•„์žˆ์Œ develop <-- Feature/dashboard & ๐Ÿ›fix: useCardMutation์— InfiniteDataํƒ€์ž… ๋ฐ˜์˜ Jun 22, 2025
@dkslel1225 dkslel1225 merged commit 3707c4b into develop Jun 22, 2025
1 of 2 checks passed
@dkslel1225 dkslel1225 self-assigned this Jun 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant